Hi,
I am not able to create Dataframe with MYSQL. Please guide me ASAP.
[maheshharuvaiah8134@ip-172-31-38-146 sreeram]$ export SPARK_CLASSPATH=/usr/hdp/2.3.4.0-3485/hive/lib/mysql-connector-java.jar
[maheshharuvaiah8134@ip-172-31-38-146 sreeram]$ spark-shell
scala> val sqlContext = new SQLContext(sc)
scala> val df_mysql = sqlContext.read.format(“jdbc”).
| option(“driver”,“com.mysql.jdbc.Driver”).
| option(“url”,“jdbc:mysql://ip-172-31-20-247:3306”).
| option(“dbtable”,“retail_db.ratings”).
| option(“user”,“sqoopuser”).
| option(“password”,“NHkkP876rp”).
| load()
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at scala.reflect.internal.util.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:62)