Skip to content

Commit 3a4c04a

Browse files
author
Subroto Sanyal
committed
SPARK-15754 Review comment fix: Reverting back the change
1 parent d53ad55 commit 3a4c04a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import org.apache.hadoop.yarn.api.records.YarnApplicationState
2424
import org.apache.spark.{SparkContext, SparkException}
2525
import org.apache.spark.deploy.yarn.{Client, ClientArguments, YarnSparkHadoopUtil}
2626
import org.apache.spark.internal.Logging
27-
import org.apache.spark.internal.config.PRINCIPAL
2827
import org.apache.spark.launcher.SparkAppHandle
2928
import org.apache.spark.scheduler.TaskSchedulerImpl
3029

@@ -65,7 +64,7 @@ private[spark] class YarnClientSchedulerBackend(
6564
// SPARK-8851: In yarn-client mode, the AM still does the credentials refresh. The driver
6665
// reads the credentials from HDFS, just like the executors and updates its own credentials
6766
// cache.
68-
if (!conf.contains(PRINCIPAL.key) && conf.contains("spark.yarn.credentials.file")) {
67+
if (conf.contains("spark.yarn.credentials.file")) {
6968
YarnSparkHadoopUtil.get.startExecutorDelegationTokenRenewer(conf)
7069
}
7170
monitorThread = asyncMonitorApplication()

0 commit comments

Comments
 (0)