spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Stream reading from database using spark streaming
Date Thu, 02 Jun 2016 17:08:13 GMT
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.
> ᐧ
>

Mime
View raw message