Guest User

Untitled

a guest
Jan 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. val opts = Map(
  2. "url" -> "jdbc:postgresql://localhost:5433/sparkdb",
  3. "dbtable" -> "TextLogs",
  4. "user" -> "admin",
  5. "password" -> "mypassword"
  6. )
  7. val df = spark.
  8. read.
  9. format("jdbc").
  10. options(opts).
  11. load
Add Comment
Please, Sign In to add comment