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

    https://github.com/apache/spark/pull/5580#discussion_r29368513
  
    --- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -341,6 +342,17 @@ private[spark] class Client(
           env("SPARK_YARN_USER_ENV") = userEnvs
         }
     
    +    // if spark.submit.pyArchives is in sparkConf, append pyArchives to 
PYTHONPATH
    +    // that can be passed on to the ApplicationMaster and the executors.
    +    if (sparkConf.contains("spark.submit.pyArchives")) {
    +      var pythonPath = sparkConf.get("spark.submit.pyArchives")
    +      if (env.contains("PYTHONPATH")) {
    +        pythonPath = Seq(env.get("PYTHONPATH"), 
pythonPath).mkString(File.pathSeparator)
    +      }
    +      env("PYTHONPATH") = pythonPath
    +      sparkConf.setExecutorEnv("PYTHONPATH", pythonPath)
    --- End diff --
    
    It feels there's something missing here.
    
    If the archives are something that is not `local:`, shouldn't they be 
uploaded to HDFS and distributed using the cache? Otherwise there's no 
guarantee that the files exist remotely, right?


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