Skip to content

[SPARK-13478][YARN] Use real user when fetching delegation tokens. - #16665

Closed
vanzin wants to merge 1 commit into
apache:branch-1.6from
vanzin:SPARK-13478_1.6
Closed

[SPARK-13478][YARN] Use real user when fetching delegation tokens.#16665
vanzin wants to merge 1 commit into
apache:branch-1.6from
vanzin:SPARK-13478_1.6

Conversation

@vanzin

Copy link
Copy Markdown
Contributor

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.

Author: Marcelo Vanzin vanzin@cloudera.com

Closes#11358 from vanzin/SPARK-13478.

(cherry picked from commit c7fccb5)

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.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closesapache#11358 from vanzin/SPARK-13478.
(cherry picked from commit c7fccb5)
@vanzin

Copy link
Copy Markdown
ContributorAuthor

There was a minor conflict but otherwise a trivial backport. Just running tests to make sure.

@SparkQA

Copy link
Copy Markdown

Test build #71747 has finished for PR 16665 at commit e847ab0.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

seems unrelated but... retest this please

@SparkQA

Copy link
Copy Markdown

Test build #71757 has finished for PR 16665 at commit e847ab0.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

retest this please

@SparkQA

Copy link
Copy Markdown

Test build #71762 has finished for PR 16665 at commit e847ab0.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

retest this please

@SparkQA

Copy link
Copy Markdown

Test build #71775 has finished for PR 16665 at commit e847ab0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

Yay. Merging to 1.6.

@vanzinvanzin closed this Jan 22, 2017
asfgit pushed a commit that referenced this pull request Jan 22, 2017
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.
Author: Marcelo Vanzin <vanzincloudera.com>
Closes#11358 from vanzin/SPARK-13478.
(cherry picked from commit c7fccb5)
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes#16665 from vanzin/SPARK-13478_1.6.
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jan 22, 2017
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.
Author: Marcelo Vanzin <vanzincloudera.com>
Closesapache#11358 from vanzin/SPARK-13478.
(cherry picked from commit c7fccb5)
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closesapache#16665 from vanzin/SPARK-13478_1.6.
(cherry picked from commit e78138a)
@vanzin
vanzin deleted the SPARK-13478_1.6 branch January 23, 2017 18:44
mgummelt pushed a commit to d2iq-archive/spark that referenced this pull request Mar 7, 2017
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.
Author: Marcelo Vanzin <vanzincloudera.com>
Closesapache#11358 from vanzin/SPARK-13478.
(cherry picked from commit c7fccb5)
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closesapache#16665 from vanzin/SPARK-13478_1.6.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vanzin@SparkQA