Guest User

Untitled

a guest
May 10th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. dataframe_mysql = SQLContext.read.format("jdbc").options(
  2. url="jdbc:mysql://127.0.0.1/",
  3. driver = "com.mysql.jdbc.Driver",
  4. dbtable = "product",
  5. user="root",
  6. password='').load()
  7.  
  8. AttributeError Traceback (most recent call last)
  9. <ipython-input-31-ad1eb4dc1f9d> in <module>()
  10. ----> 1 dataframe_mysql = SQLContext.read.format("jdbc").options(
  11. 2 url="jdbc:mysql://127.0.0.1/",
  12. 3 driver = "com.mysql.jdbc.Driver",
  13. 4 dbtable = "product",
  14. 5 user="root",
  15.  
  16. AttributeError: 'property' object has no attribute 'format'
Add Comment
Please, Sign In to add comment