This repository was archived by the owner on Jan 9, 2020. It is now read-only.
forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 117
Basic Secure HDFS Support [514] #540
Merged
liyinan926
merged 16 commits into
apache-spark-on-k8s:branch-2.2-kubernetes
from
bloomberg:hdfs-kerberos-support-1
Dec 12, 2017
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7612bf5
first stage of PR #514 of just logic
ifilonenko 50f47d0
fixing build and unit test issues
ifilonenko 87df4a7
fixed integration tests
ifilonenko 67856a5
fixed issue with executorPodFactory unit tests
ifilonenko 7cdae31
first series of PR comments
ifilonenko 04aa26f
handle most PR comments
ifilonenko 765455d
third round of PR comments
ifilonenko 488b37e
initial round of comments and initial unit tests for deploy
ifilonenko 37feb22
handled most of the comments and added test cases for pods
ifilonenko 4e44027
resolve conflicts
ifilonenko 86c7b8f
Merge branch 'branch-2.2-kubernetes' into hdfs-kerberos-support-1
ifilonenko 64b0af7
merge conflicts
ifilonenko ba2bafc
adding thread sleeping for RSS issues as a test
ifilonenko 0c99503
resolving comments and unit testing
ifilonenko a9d074b
regarding comments on PR
ifilonenko a3b12a7
merge conflicts and resolving comments
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,9 @@ private[spark] class HadoopUGIUtil{ | |
@deprecated("Moved to core in 2.3", "2.3") | ||
def deserialize(tokenBytes: Array[Byte]): Credentials = { | ||
val creds = new Credentials() | ||
creds.readTokenStorageStream(new DataInputStream(new ByteArrayInputStream(tokenBytes))) | ||
val dataStream = new DataInputStream(new ByteArrayInputStream(tokenBytes)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
creds.readTokenStorageStream(dataStream) | ||
dataStream.close() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wraps close in a |
||
creds | ||
} | ||
} |
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ private[spark] trait KerberosTokenConfBootstrap { | |
private[spark] class KerberosTokenConfBootstrapImpl( | ||
secretName: String, | ||
secretItemKey: String, | ||
userName: String) extends KerberosTokenConfBootstrap with Logging{ | ||
userName: String) extends KerberosTokenConfBootstrap with Logging { | ||
|
||
override def bootstrapMainContainerAndVolumes( | ||
originalPodWithMainContainer: PodWithMainContainer) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indentation is off here, indent in one more along with the line below. |
||
|
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.
Same here. Move to some other class?