GitHub user vanzin opened a pull request:
https://github.com/apache/spark/pull/11358
[SPARK-13478] [yarn] Use real user when fetching delegation tokens.
The Hive client library is not smart enough to notice that the current
user is a proxy user; so when using a proxy user, it fails to fetch
delegation tokens from the metastore because of a missing kerberos
TGT for the current user.
To fix it, just run the code that fetches the delegation token as the
real logged in user.
Tested on a kerberos cluster both submitting normally and with a proxy
user; Hive and HBase tokens are retrieved correctly in both cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vanzin/spark SPARK-13478
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11358.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 #11358
----
commit a63d7477812f59ca40b9b9ee82844df149bab296
Author: Marcelo Vanzin <[email protected]>
Date: 2016-02-24T23:30:39Z
[SPARK-13478] [yarn] Use real user when fetching delegation tokens.
The Hive client library is not smart enough to notice that the current
user is a proxy user; so when using a proxy user, it fails to fetch
delegation tokens from the metastore because of a missing kerberos
TGT for the current user.
To fix it, just run the code that fetches the delegation token as the
real logged in user.
Tested on a kerberos cluster both submitting normally and with a proxy
user; Hive and HBase tokens are retrieved correctly in both cases.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]