You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by shyla deshpande <de...@gmail.com> on 2016/12/01 06:57:58 UTC

Spark 2.0.2 , using DStreams in Spark Streaming . How do I create SQLContext? Please help

I am Spark 2.0.2 , using DStreams because I need Cassandra Sink.

How do I create SQLContext? I get the error SQLContext deprecated.


*[image: Inline image 1]*

*Thanks*

Re: Spark 2.0.2 , using DStreams in Spark Streaming . How do I create SQLContext? Please help

Posted by shyla deshpande <de...@gmail.com>.
Used SparkSession, Works now. Thanks.

On Wed, Nov 30, 2016 at 11:02 PM, Deepak Sharma <de...@gmail.com>
wrote:

> In Spark > 2.0 , spark session was introduced that you can use to query
> hive as well.
> Just make sure you create spark session with enableHiveSupport() option.
>
> Thanks
> Deepak
>
> On Thu, Dec 1, 2016 at 12:27 PM, shyla deshpande <deshpandeshyla@gmail.com
> > wrote:
>
>> I am Spark 2.0.2 , using DStreams because I need Cassandra Sink.
>>
>> How do I create SQLContext? I get the error SQLContext deprecated.
>>
>>
>> *[image: Inline image 1]*
>>
>> *Thanks*
>>
>>
>
>
> --
> Thanks
> Deepak
> www.bigdatabig.com
> www.keosha.net
>

Re: Spark 2.0.2 , using DStreams in Spark Streaming . How do I create SQLContext? Please help

Posted by Deepak Sharma <de...@gmail.com>.
In Spark > 2.0 , spark session was introduced that you can use to query
hive as well.
Just make sure you create spark session with enableHiveSupport() option.

Thanks
Deepak

On Thu, Dec 1, 2016 at 12:27 PM, shyla deshpande <de...@gmail.com>
wrote:

> I am Spark 2.0.2 , using DStreams because I need Cassandra Sink.
>
> How do I create SQLContext? I get the error SQLContext deprecated.
>
>
> *[image: Inline image 1]*
>
> *Thanks*
>
>


-- 
Thanks
Deepak
www.bigdatabig.com
www.keosha.net