Skip to content

Conversation

@subrotosanyal
Copy link

What changes were proposed in this pull request?

The credentials are not added to the credentials of UserGroupInformation.getCurrentUser(). Further if the client has possibility to login using keytab then the updateDelegationToken thread is not started on client.

How was this patch tested?

ran dev/run-tests

…kens to be added in current user credential.
@vanzin
Copy link
Contributor

vanzin commented Jun 3, 2016

ok to test

@SparkQA
Copy link

SparkQA commented Jun 3, 2016

Test build #59938 has finished for PR 13499 at commit 16ce28c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Jun 3, 2016

@subrotosanyal could you update the title to follow the convention? [SPARK-xxxx][yarn] Summary. Thanks!

@subrotosanyal subrotosanyal changed the title SPARK-15754 Not letting the credentials containing hdfs delegation tokens to be added in current user credential. [SPARK-15754] [yarn] Not letting the credentials containing hdfs delegation tokens to be added in current user credential. Jun 3, 2016
@subrotosanyal
Copy link
Author

@vanzin
Updated the title.

@vanzin
Copy link
Contributor

vanzin commented Jun 3, 2016

BTW the change looks fine, I just want to take a look at the rest of the code (the parts you're not touching) and also run some tests internally with kerberos enabled.


import org.apache.spark.{SparkContext, SparkException}
import org.apache.spark.deploy.yarn.{Client, ClientArguments, YarnSparkHadoopUtil}
import org.apache.spark.SparkContext
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are unnecessary, and in fact we prefer the previous style.

@SparkQA
Copy link

SparkQA commented Jun 3, 2016

Test build #59955 has finished for PR 13499 at commit d53ad55.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@subrotosanyal
Copy link
Author

hi @vanzin
Thanks for your comments.
I have removed the code change for YarnClientSchedulerBackend.
I will raise a separate ticket after further more analysis for the problem I am assuming to happen.

@SparkQA
Copy link

SparkQA commented Jun 3, 2016

Test build #59958 has finished for PR 13499 at commit 3a4c04a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Jun 3, 2016

Ran some kerberos tests here and all looks good, so I'm merging this (will also try 1.6.x if there are no conflicts). Thanks!

asfgit pushed a commit that referenced this pull request Jun 3, 2016
…ation tokens to be added in current user credential.

## What changes were proposed in this pull request?
The credentials are not added to the credentials of UserGroupInformation.getCurrentUser(). Further if the client has possibility to login using keytab then the updateDelegationToken thread is not started on client.

## How was this patch tested?
ran dev/run-tests

Author: Subroto Sanyal <[email protected]>

Closes #13499 from subrotosanyal/SPARK-15754-save-ugi-from-changing.

(cherry picked from commit 61d729a)
Signed-off-by: Marcelo Vanzin <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 3, 2016
…ation tokens to be added in current user credential.

## What changes were proposed in this pull request?
The credentials are not added to the credentials of UserGroupInformation.getCurrentUser(). Further if the client has possibility to login using keytab then the updateDelegationToken thread is not started on client.

## How was this patch tested?
ran dev/run-tests

Author: Subroto Sanyal <[email protected]>

Closes #13499 from subrotosanyal/SPARK-15754-save-ugi-from-changing.

(cherry picked from commit 61d729a)
Signed-off-by: Marcelo Vanzin <[email protected]>
@asfgit asfgit closed this in 61d729a Jun 3, 2016
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jun 6, 2016
…ation tokens to be added in current user credential.

## What changes were proposed in this pull request?
The credentials are not added to the credentials of UserGroupInformation.getCurrentUser(). Further if the client has possibility to login using keytab then the updateDelegationToken thread is not started on client.

## How was this patch tested?
ran dev/run-tests

Author: Subroto Sanyal <[email protected]>

Closes apache#13499 from subrotosanyal/SPARK-15754-save-ugi-from-changing.

(cherry picked from commit 61d729a)
Signed-off-by: Marcelo Vanzin <[email protected]>
(cherry picked from commit a0cf7d0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants