-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-5342][YARN] Allow long running Spark apps to run on secure YARN/HDFS #5823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
harishreedharan
wants to merge
47
commits into
apache:master
from
harishreedharan:kerberos-longrunning
Closed
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
77914dd
WIP: Add kerberos principal and keytab to YARN client.
harishreedharan ccba5bc
WIP: More changes wrt kerberos
harishreedharan 2b0d745
[SPARK-5342][YARN] Allow long running Spark apps to run on secure YAR…
harishreedharan f8fe694
Handle None if keytab-login is not scheduled.
harishreedharan bcfc374
Fix Hadoop-1 build by adding no-op methods in SparkHadoopUtil, with i…
harishreedharan d282d7a
Fix ClientSuite to set YARN mode, so that the correct class is used i…
harishreedharan 41efde0
Merge branch 'master' into kerberos-longrunning
harishreedharan fb27f46
Make sure principal and keytab are set before CoarseGrainedSchedulerB…
harishreedharan 8c6928a
Fix issue caused by direct creation of Actor object.
harishreedharan d79b2b9
Make sure correct credentials are passed to FileSystem#addDelegationT…
harishreedharan 0985b4e
Write tokens to HDFS and read them back when required, rather than se…
harishreedharan b4cb917
Send keytab to AM via DistributedCache rather than directly via HDFS
harishreedharan 5c11c3e
Move tests to YarnSparkHadoopUtil to fix compile issues.
harishreedharan f6954da
Got rid of Akka communication to renew, instead the executors check a…
harishreedharan f0f54cb
Be more defensive when updating the credentials file.
harishreedharan af6d5f0
Cleaning up files where changes weren't required.
harishreedharan 2debcea
Change the file structure for credentials files. I will push a follow…
harishreedharan f4fd711
Fix SparkConf usage.
harishreedharan 9ef5f1b
Added explanation of how the credentials refresh works, some other mi…
harishreedharan 55522e3
Fix failure caused by Preconditions ambiguity.
harishreedharan 0de27ee
Merge branch 'master' into kerberos-longrunning
harishreedharan 42813b4
Remove utils.sh, which was re-added due to merge with master.
harishreedharan fa233bd
Adding logging, fixing minor formatting and ordering issues.
harishreedharan 62c45ce
Relogin from keytab periodically.
harishreedharan 61b2b27
Account for AM restarts by making sure lastSuffix is read from the fi…
harishreedharan 2f9975c
Ensure new tokens are written out immediately on AM restart. Also, pi…
harishreedharan f74303c
Move the new logic into specialized classes. Add cleanup for old cred…
harishreedharan bcd11f9
Refactor AM and Executor token update code into separate classes, als…
harishreedharan 7f1bc58
Minor fixes, cleanup.
harishreedharan 0e9507e
Merge branch 'master' into kerberos-longrunning
harishreedharan e800c8b
Restore original RegisteredExecutor message, and send new tokens via …
harishreedharan 8a4f268
Added docs in the security guide. Changed some code to ensure that th…
harishreedharan 7b19643
Merge branch 'master' into kerberos-longrunning
harishreedharan bc083e3
Overload RegisteredExecutor to send tokens. Minor doc updates.
harishreedharan ebb36f5
Merge branch 'master' into kerberos-longrunning
harishreedharan 42eead4
Remove RPC part. Refactor and move methods around, use renewal interv…
harishreedharan f041dd3
Merge branch 'master' into kerberos-longrunning
harishreedharan 072659e
Fix build failure caused by thread factory getting moved to ThreadUtils.
harishreedharan 6963bbc
Schedule renewal in AM before starting user class. Else, a restarted …
harishreedharan 09fe224
Use token.renew to get token's renewal interval rather than using hdf…
harishreedharan 611923a
Make sure the namenodes are listed correctly for creating tokens.
harishreedharan 36eb8a9
Change the renewal interval config param. Fix a bunch of comments.
harishreedharan e851f70
Move the ExecutorDelegationTokenRenewer to yarn module. Use reflectio…
harishreedharan 7bff6e9
Make sure all required classes are present in the jar. Fix import order.
harishreedharan b5e7a72
Remove reflection, use a method in SparkHadoopUtil to update the toke…
harishreedharan 4d04301
Minor formatting fixes.
harishreedharan 3c86bba
Import fixes. Import postfixOps explicitly.
harishreedharan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: out of order