aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2014-11-01 15:03:11 -0700
committerMichael Armbrust <michael@databricks.com>2014-11-01 15:03:11 -0700
commitad0fde10b2285e780349be5a8f333db0974a502f (patch)
tree4b870113fdb6d47ae4405edd3b8bd5d65d933e49 /core
parentf55218aeb1e9d638df6229b36a59a15ce5363482 (diff)
downloadspark-ad0fde10b2285e780349be5a8f333db0974a502f.tar.gz
spark-ad0fde10b2285e780349be5a8f333db0974a502f.tar.bz2
spark-ad0fde10b2285e780349be5a8f333db0974a502f.zip
[SPARK-4037][SQL] Removes the SessionState instance created in HiveThriftServer2
`HiveThriftServer2` creates a global singleton `SessionState` instance and overrides `HiveContext` to inject the `SessionState` object. This messes up `SessionState` initialization and causes problems. This PR replaces the global `SessionState` with `HiveContext.sessionState` to avoid the initialization conflict. Also `HiveContext` reuses existing started `SessionState` if any (this is required by `SparkSQLCLIDriver`, which uses specialized `CliSessionState`). Author: Cheng Lian <lian@databricks.com> Closes #2887 from liancheng/spark-4037 and squashes the following commits: 8446675 [Cheng Lian] Removes redundant Driver initialization a28fef5 [Cheng Lian] Avoid starting HiveContext.sessionState multiple times 49b1c5b [Cheng Lian] Reuses existing started SessionState if any 3cd6fab [Cheng Lian] Fixes SPARK-4037
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions