Github user jerryshao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11603#discussion_r55639455
  
    --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -454,10 +478,16 @@ private[spark] class Client(
          *   (3) whether to add these resources to the classpath
          */
         val cachedSecondaryJarLinks = ListBuffer.empty[String]
    +    val files = sparkConf.get(FILES_TO_DISTRIBUTE).map(p => 
Utils.resolveURIs(p))
    +      .orElse(sys.env.get("SPARK_YARN_DIST_FILES"))
    +      .orNull
    +    val archives = sparkConf.get(ARCHIVES_TO_DISTRIBUTE).map(p => 
Utils.resolveURIs(p))
    +      .orElse(sys.env.get("SPARK_YARN_DIST_ARCHIVES"))
    +      .orNull
         List(
    -      (args.addJars, LocalResourceType.FILE, true),
    -      (args.files, LocalResourceType.FILE, false),
    -      (args.archives, LocalResourceType.ARCHIVE, false)
    +      (sparkConf.getOption("spark.jars").orNull, LocalResourceType.FILE, 
true),
    --- End diff --
    
    @tgravescs @vanzin I think maybe I already put "spark.jars" into 
distributed cached IIUC. Maybe the problem is that for yarn cluster mode, here 
I both do the distributed cache and SparkContext#addJars things.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to