spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng Lian <lian.cs....@gmail.com>
Subject Re: Does Spark HiveContext supported with JavaSparkContext?
Date Sun, 29 Mar 2015 14:24:29 GMT
I mean JavaSparkContext has a field name "sc", whose type is 
SparkContext. You may pass this "sc" to HiveContext.

On 3/29/15 9:59 PM, Vincent He wrote:
> thanks .
> It does not work, and can not pass compile as HiveContext constructor 
> does not accept JaveSparkContext and JaveSparkContext is not subclass 
> of SparkContext.
> Anyone else have any idea? I suspect this is supported now.
>
> On Sun, Mar 29, 2015 at 8:54 AM, Cheng Lian <lian.cs.zju@gmail.com 
> <mailto:lian.cs.zju@gmail.com>> wrote:
>
>     You may simply pass in JavaSparkContext.sc
>
>
>     On 3/29/15 9:25 PM, Vincent He wrote:
>
>         All,
>
>         I try Spark SQL with Java, I find HiveContext does not accept
>         JavaSparkContext, is this true? Or any special build of Spark
>         I need to do (I build with Hive and thrift server)? Can we use
>         HiveContext in Java? thanks in advance.
>
>
>


Mime
View raw message