Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Loading data from a JDBC source
- val jdbcDF = spark.read
- .format("jdbc")
- .option("url", "jdbc:postgresql:dbserver")
- .option("dbtable", "schema.tablename")
- .option("user", "username")
- .option("password", "password")
- .load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement