Spark intergating with mysql


#1

how to integrate spark and mysql


#2

Hi, Sundar.

You can connect spark with Mysql by creating sqlcontext object.
val sqlcontext = new org.apache.spark.sql.SQLContext(sc).
Kindly refer to the below class :- https://cloudxlab.com/assessment/displayslide/616/spark-sql-working-with-jdbc
and this article :- How to create the Dataframe for MYsql table

All the best!