Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jdbcurl = 'jdbc:db2://MYHOST:MYPORT/MYDATABASE'
- props = {}
- props['user'] = 'MYUSERID'
- props['password'] = 'MYPASSWORD'
- my_df = sqlContext.read.jdbc(jdbcurl, 'MYSCHEMA.MYTABLE', properties=props)
- my_df.cache()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement