Hi durga, How can I resolve this error ?
Opened this issue · 0 comments
saikrishna5779 commented
from pyspark.sql import SQLContext
sqlContext = SQLContext(sc)
jdbcurl = "jdbc:mysql://quickstart.cloudera:3306/retail_db?user=retail_dba&password=cloudera"
df = sqlContext.load(source="jdbc", url=jdbcurl, dbtable="departments")
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'SQLContext' object has no attribute 'load'
@dgadiraju