Skip to content

Commit

Permalink
apache#8 fix kerberos
Browse files Browse the repository at this point in the history
  • Loading branch information
hn5092 committed Dec 27, 2018
1 parent 45c3b35 commit 77493ca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ private[spark] class CoarseGrainedExecutorBackend(

case UpdateDelegationTokens(tokenBytes) =>
logInfo(s"Received tokens of ${tokenBytes.length} bytes")
SparkHadoopUtil.get.addDelegationTokens(tokenBytes, env.conf)
if (SparkEnv.get.executorId != SparkContext.DRIVER_IDENTIFIER) {
SparkHadoopUtil.get.addDelegationTokens(tokenBytes, env.conf)
}
}

override def onDisconnected(remoteAddress: RpcAddress): Unit = {
Expand Down

0 comments on commit 77493ca

Please sign in to comment.