Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix NPE bug in the code
Change-Id: I6be6be7b1e9a4580e5e1eeab8aac451ea830ef8b
  • Loading branch information
jerryshao committed Mar 21, 2017
commit e9b55800e9ad02ef07f081a5dfb4943ac5d80523
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ private[spark] class Client(

// Merge credentials obtained from registered providers
val nearestTimeOfNextRenewal = credentialManager.obtainCredentials(hadoopConf, credentials)
// Add credentials to current user's UGI, so that following operations don't need to use the
// Kerberos tgt to get delegations again in the client side.
UserGroupInformation.getCurrentUser.addCredentials(credentials)

if (credentials != null) {
// Add credentials to current user's UGI, so that following operations don't need to use the
// Kerberos tgt to get delegations again in the client side.
UserGroupInformation.getCurrentUser.addCredentials(credentials)
logDebug(YarnSparkHadoopUtil.get.dumpTokens(credentials).mkString("\n"))
}

Expand Down