Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. docker run --link dbHost:dbHost -v my/path/to/postgres/jar:postgres/ -it -h sandbox sequenceiq/spark:1.6.0 bash
  2.  
  3. val jdbcDF = sqlContext.read.format("jdbc").options(
  4. Map("url" -> "jdbc:postgresql://dbHost:5432/ticketapp?user=user&password=password",
  5. "dbtable" -> "events")
  6. ).load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement