[SPARK-34914][CORE] Local mode supports Hadoop Delegation Token#55424
Open
pan3793 wants to merge 4 commits intoapache:masterfrom
Open
[SPARK-34914][CORE] Local mode supports Hadoop Delegation Token#55424pan3793 wants to merge 4 commits intoapache:masterfrom
pan3793 wants to merge 4 commits intoapache:masterfrom
Conversation
Member
Author
|
cc @ulysses-you @tgravescs @gaborgsomogyi, could you please take a look? |
Member
Author
|
also cc @cxzl25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is based on @ulysses-you's original work - #32009
What changes were proposed in this pull request?
Set up
HadoopDelegationTokenManagerinLocalSchedulerBackendwhenUserGroupInformation.isSecurityEnabledto make local mode support Hadoop Delegation Token.Why are the changes needed?
Local mode is useful for some production use cases, this PR enables it to work on kerberized environments.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Tested in a Kerberized Hadoop cluster, with several combinations.
hdfs-site.xml-dfs.namenode.delegation.key.update-interval=300000(5 min)hdfs-site.xml-dfs.namenode.delegation.token.max-lifetime=600000(10 min)Case: local mode with TGT cache and
--proxy-userSuccess fetch HDFS/HMS Delegation Token, and able to CREATE and SELECT Hive tables
Case: local mode with keytab
Success fetch HDFS/HMS Delegation Token, and is able to CREATE and SELECT Hive tables, also able to renew HDFS Delegation Token
Was this patch authored or co-authored using generative AI tooling?
Code is crafted by hand, and Claude Opus 4.7 is used for review before submitting.