Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val s2gathdata =
- spark.sqlContext
- .read
- .format("jdbc")
- .options(Map("url" ->"jdbc:oracle:thin:user/password@url:1521:orcl",
- "dbtable" -> "table",
- "connectionProperties" -> "oracle.jdbc.timezoneAsRegion=false"))
- .load()
Add Comment
Please, Sign In to add comment