JDBC Operations in Spark + Scala

Here is the sample code to create a sample Dataframe from a RDD and then insert that into MySql database. This approved should work for any other relational databases.



Happy Sparking...

Comments

Popular posts from this blog

Binary Data to Float using Spark SQL

Spark Cluster Mode - Too many open files

Spark Scala - Perform data aggregation on last or next n seconds time window