Skip to content

Commit 3e7e1c4

Browse files
committed
use sparkConf instead of hadoop conf
1 parent dc3c825 commit 3e7e1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ trait ClientBase extends Logging {
241241
}
242242
}
243243
}
244-
conf.set(ClientBase.CONF_SPARK_YARN_SECONDARY_JARS, cachedJarLinks.mkString(","))
244+
sparkConf.set(ClientBase.CONF_SPARK_YARN_SECONDARY_JARS, cachedJarLinks.mkString(","))
245245

246246
UserGroupInformation.getCurrentUser().addCredentials(credentials)
247247
localResources
@@ -485,7 +485,7 @@ object ClientBase {
485485

486486
extraClassPath.foreach(addClasspathEntry)
487487

488-
val localSecondaryJarLinks = conf.getStrings(CONF_SPARK_YARN_SECONDARY_JARS)
488+
val localSecondaryJarLinks = sparkConf.getOption(CONF_SPARK_YARN_SECONDARY_JARS).getOrElse("").split(",")
489489
// Normally the users app.jar is last in case conflicts with spark jars
490490
if (sparkConf.get("spark.yarn.user.classpath.first", "false").toBoolean) {
491491
addPwdClasspathEntry(APP_JAR)

0 commit comments

Comments
 (0)