示例#1
0
 def __init__(self, sparkContext, jhiveContext=None):
     if jhiveContext is None:
         sparkSession = SparkSession.withHiveSupport(sparkContext)
     else:
         sparkSession = SparkSession(sparkContext,
                                     jhiveContext.sparkSession())
     SQLContext.__init__(self, sparkContext, sparkSession, jhiveContext)
示例#2
0
文件: context.py 项目: bsangee/spark
 def __init__(self, sparkContext, jhiveContext=None):
     if jhiveContext is None:
         sparkSession = SparkSession.withHiveSupport(sparkContext)
     else:
         sparkSession = SparkSession(sparkContext, jhiveContext.sparkSession())
     SQLContext.__init__(self, sparkContext, sparkSession, jhiveContext)