GitHub user jinxing64 opened a pull request:
https://github.com/apache/spark/pull/19127
[SPARK-21916][SQL] Set isolationOn=true when create hive client for
metadata.
## What changes were proposed in this pull request?
In current code, we set `isolationOn=!isCliSession()` when create hive
client for metadata. However conf of `CliSessionState` points to local dummy
metastore(https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala#L416).
Using `CliSessionState`, we fail to get metadata from remote hive metastore.
We can always set `isolationOn=true` when create hive clietnt for metadata
## How was this patch tested?
Existing.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jinxing64/spark SPARK-21916
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19127.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19127
----
commit 2d13ab8a18955e281033c17a446022aba57865f8
Author: jinxing <[email protected]>
Date: 2017-09-05T05:28:06Z
Set isolationOn=true when create hive client for metadata.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]