protected class HiveContext.SQLSession extends SQLContext.SQLSession
Constructor and Description |
---|
HiveContext.SQLSession() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.spark.sql.SQLConf |
conf() |
protected org.apache.hadoop.hive.conf.HiveConf |
hiveconf() |
protected org.apache.hadoop.hive.ql.session.SessionState |
sessionState()
SQLConf and HiveConf contracts:
|
protected org.apache.spark.sql.SQLConf conf()
conf
in class SQLContext.SQLSession
protected org.apache.hadoop.hive.ql.session.SessionState sessionState()
1. reuse existing started SessionState if any 2. when the Hive session is first initialized, params in HiveConf will get picked up by the SQLConf. Additionally, any properties set by set() or a SET command inside sql() will be set in the SQLConf *as well as* in the HiveConf.
protected org.apache.hadoop.hive.conf.HiveConf hiveconf()