Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. # Loading data for JDBC source
  2. jdbcDF = spark.read\
  3. .format("jdbc")\
  4. .option("url", "jdbc:postgresql:dbserver")\
  5. .option("dbtable", "schema.tablename") \
  6. .option("user", "username") \
  7. .option("password", "password") \
  8. .load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement