GitHub user yaooqinn opened a pull request:
https://github.com/apache/spark/pull/20784
[SPARK-23639][SQL]Obtain token before init metastore client in SparkSQL CLI
## What changes were proposed in this pull request?
In SparkSQLCLI, SessionState generates before SparkContext instantiating.
When we use --proxy-user to impersonate, it's unable to initializing a
metastore client to talk to the secured metastore for no kerberos ticket.
## How was this patch tested?
Manually verified with kerberized hive metasotre / hdfs.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yaooqinn/spark SPARK-23639
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20784.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 #20784
----
commit 2011ef219934e6b2e09da3935ca4a4658698cac8
Author: Kent Yao <yaooqinn@...>
Date: 2018-03-09T10:25:00Z
obtain token before init metastore client
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]