Guest User

Untitled

a guest
Feb 4th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. val s2gathdata =
  2. spark.sqlContext
  3. .read
  4. .format("jdbc")
  5. .options(Map("url" ->"jdbc:oracle:thin:user/password@url:1521:orcl",
  6. "dbtable" -> "table",
  7. "connectionProperties" -> "oracle.jdbc.timezoneAsRegion=false"))
  8. .load()
Add Comment
Please, Sign In to add comment