Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. val df = spark.read.format("jdbc")
  2. .option("url", "jdbc:mysql://localhost:3306/yourDatabase?useSSL=false")
  3. .option("driver", "com.mysql.jdbc.Driver")
  4. .option("dbtable", "tablename")
  5. .option("user", "user-name")
  6. .option("password", "user-password")
  7. .load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement