Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // Loading data from a JDBC source
  2. val jdbcDF = spark.read
  3. .format("jdbc")
  4. .option("url", "jdbc:postgresql:dbserver")
  5. .option("dbtable", "schema.tablename")
  6. .option("user", "username")
  7. .option("password", "password")
  8. .load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement