Hi Deepa,

In Scala, You will do something like
https://gist.github.com/akhld/ccafb27f098163bea622

With Java API's it will be something like
https://gist.github.com/akhld/0d9299aafc981553bc34



Thanks
Best Regards

On Tue, Dec 9, 2014 at 6:39 PM, Deepa Jayaveer <deepa.jayav...@tcs.com>
wrote:

> Hi All,
> am new to Spark.  I tried to connect to Mysql using Spark.  want to write
> a code in Java but
> getting runtime exception. I guess that the issue is with the function0
> and function1 objects being passed in JDBCRDD .
>
> I tried my level best and attached the code, can you please help us to fix
> the issue.
>
>
>
> Thanks
> Deepa
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
> For additional commands, e-mail: user-h...@spark.apache.org
>

Reply via email to