http://www.sparkexpert.com/2015/03/28/loading-database-data-into-spark-using-data-sources-api/

https://spark.apache.org/docs/1.6.1/api/scala/index.html#org.apache.spark.rdd.JdbcRDD

FYI

On Thu, Jun 2, 2016 at 6:26 AM, Zakaria Hili <zakahili@gmail.com> wrote:

I want to use spark streaming to read data from RDBMS database like mysql.

but I don't know how to do this using JavaStreamingContext

 JavaStreamingContext jssc = new JavaStreamingContext(conf, Durations.milliseconds(500));
DataFrame df = jssc. ??

I search in the internet but I didn't find anything

thank you in advance.