aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/scala
diff options
context:
space:
mode:
authorjerryshao <sshao@hortonworks.com>2017-03-28 10:41:11 -0700
committerMarcelo Vanzin <vanzin@cloudera.com>2017-03-28 10:41:11 -0700
commit17eddb35a280e77da7520343e0bf2a86b329ed62 (patch)
tree04ba012ba4ee5c6b45c636dc19395235572ba92c /sql/core/src/test/scala
parentf82461fc1197f6055d9cf972d82260b178e10a7c (diff)
downloadspark-17eddb35a280e77da7520343e0bf2a86b329ed62.tar.gz
spark-17eddb35a280e77da7520343e0bf2a86b329ed62.tar.bz2
spark-17eddb35a280e77da7520343e0bf2a86b329ed62.zip
[SPARK-19995][YARN] Register tokens to current UGI to avoid re-issuing of tokens in yarn client mode
## What changes were proposed in this pull request? In the current Spark on YARN code, we will obtain tokens from provided services, but we're not going to add these tokens to the current user's credentials. This will make all the following operations to these services still require TGT rather than delegation tokens. This is unnecessary since we already got the tokens, also this will lead to failure in user impersonation scenario, because the TGT is granted by real user, not proxy user. So here changing to put all the tokens to the current UGI, so that following operations to these services will honor tokens rather than TGT, and this will further handle the proxy user issue mentioned above. ## How was this patch tested? Local verified in secure cluster. vanzin tgravescs mridulm dongjoon-hyun please help to review, thanks a lot. Author: jerryshao <sshao@hortonworks.com> Closes #17335 from jerryshao/SPARK-19995.
Diffstat (limited to 'sql/core/src/test/scala')
0 files changed, 0 insertions, 0 deletions