-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23257][K8S] Kerberos Support for Spark on K8S #21669
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
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
73f2777
initial Driver logic for Hadoop and Kerberos Support
ifilonenko 6069be5
add executors... still need to refactor to use sparkConf exclusivley
ifilonenko 000120f
refactored executor logic preparing for e2e testing
ifilonenko 13b3adc
resolved initial comments
ifilonenko 0939738
merge conflicts
ifilonenko 347536e
Merge branch 'spark-master' into secure-hdfs
ifilonenko c30ad8c
launching driver with kerberos authentication instead of simple
ifilonenko 1697e74
merge conflicts and addition of security context
ifilonenko 4a000d2
fix dockerfile
ifilonenko 719b059
non-effective attempt to solve null UnixUsername error
ifilonenko fb9e810
move credential get
ifilonenko e7935f8
current working solution
ifilonenko aa3779c
merge conflicts
ifilonenko 32c408c
merge conflicts
ifilonenko 3cf644e
Merge branch 'spark-master' into secure-hdfs
ifilonenko 583a52c
merge conflicts and various additions
ifilonenko 6ae3def
Merge branch 'spark-master' into secure-hdfs
ifilonenko 78953e6
fixes so tests pass
ifilonenko 73f157f
refactor to handle login logic being used in spark-submit
ifilonenko 367e65b
Merge branch 'spark-master' into secure-hdfs
ifilonenko 5f52a1a
resolve comments and add documentation
ifilonenko 6548ef9
resolved comments
ifilonenko 7f72af5
resolved rest of comments
ifilonenko 4ce00a5
small doc addition
ifilonenko 89063fd
fixes to pass kerberos tests
ifilonenko e303048
resolve comments
ifilonenko 69840a8
resolve comments
ifilonenko 2108154
style and indentation
ifilonenko a987a70
resolving comments
ifilonenko e2f8063
hopefully final comment resolution
ifilonenko f3a0ffb
style issues
ifilonenko a958920
included new ability to bake krb5.conf into your docker images and no…
ifilonenko dd95fca
style check
ifilonenko 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,10 +48,8 @@ private[spark] object HadoopKerberosLogin { | |
| submissionSparkConf, | ||
| hadoopConf) | ||
| require(tokenData.nonEmpty, "Did not obtain any delegation tokens") | ||
| val currentTime = tokenManager.getCurrentTime | ||
| val initialTokenDataKeyName = s"$KERBEROS_SECRET_KEY_PREFIX-$currentTime" | ||
| val newSecretName = | ||
| s"$kubernetesResourceNamePrefix-$KERBEROS_DELEGEGATION_TOKEN_SECRET_NAME.$currentTime" | ||
| val initialTokenDataKeyName = KERBEROS_SECRET_KEY_PREFIX | ||
|
||
| val newSecretName = s"$kubernetesResourceNamePrefix-$KERBEROS_DELEGEGATION_TOKEN_SECRET_NAME" | ||
| val secretDT = | ||
| new SecretBuilder() | ||
| .withNewMetadata() | ||
|
|
||
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
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
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
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.
No need to address it here but it feels like these methods should have default implementations, given that lots of classes just don't do anything with them.