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

    https://github.com/apache/spark/pull/6752#discussion_r32209657
  
    --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -1179,8 +1182,35 @@ object Client extends Logging {
        * Add the given path to the classpath entry of the given environment 
map.
        * If the classpath is already set, this appends the new path to the 
existing classpath.
        */
    -  private def addClasspathEntry(path: String, env: HashMap[String, 
String]): Unit =
    -    YarnSparkHadoopUtil.addPathToEnvironment(env, 
Environment.CLASSPATH.name, path)
    +  private def addClasspathEntry(
    +      conf: SparkConf,
    +      path: String,
    +      env: HashMap[String, String]): Unit =
    +    YarnSparkHadoopUtil.addPathToEnvironment(env, 
Environment.CLASSPATH.name,
    +      getClusterPath(conf, path))
    --- End diff --
    
    how about put getClusterPath outside addClasspathEntry? because many files 
do not need to replace,example:__spark_conf__, __pyfiles__ .


---
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