File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
yarn/common/src/main/scala/org/apache/spark/deploy/yarn Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments