From: je...@hotmail.com
To: yuzhih...@gmail.com
Subject: RE: How to get the singleton instance of SQLContext/HiveContext: val
sqlContext = SQLContext.getOrCreate(rdd.sparkContext)
Date: Fri, 4 Mar 2016 14:09:20 -0800
Below code is from the soruces, is this what you ask?
class
bq. However the method does not seem inherited to HiveContext.
Can you clarify the above observation ?
HiveContext extends SQLContext .
On Fri, Mar 4, 2016 at 1:23 PM, jelez wrote:
> What is the best approach to use getOrCreate for streaming job with
> HiveContext.
> It seems for SQLContext the
What is the best approach to use getOrCreate for streaming job with
HiveContext.
It seems for SQLContext the recommended approach is to use getOrCreate:
https://spark.apache.org/docs/latest/streaming-programming-guide.html#dataframe-and-sql-operations
val sqlContext = SQLContext.getOrCreate(rdd
What is the best approach to use getOrCreate for streaming job with
HiveContext.It seems for SQLContext the recommended approach is to use
getOrCreate:
https://spark.apache.org/docs/latest/streaming-programming-guide.html#dataframe-and-sql-operationsval
sqlContext = SQLContext.getOrCreate(rdd.s