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

    https://github.com/apache/spark/pull/3557#discussion_r21232550
  
    --- Diff: 
yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala
 ---
    @@ -79,11 +79,8 @@ private[spark] class YarnClientSchedulerBackend(
             ("--name", "SPARK_YARN_APP_NAME", "spark.app.name")
           )
         optionTuples.foreach { case (optionName, envVar, sparkProp) =>
    -      if (System.getenv(envVar) != null) {
    --- End diff --
    
    So this order was done on purpose. There were a few issues  if they are the 
other way.
    
    See commit 
https://github.com/apache/spark/commit/3f779d872d8459b262b3db9e4d12b011910b6ce9 
and associated jira https://issues.apache.org/jira/browse/SPARK-1631.
    
    cc @vanzin
    
    I know this was brought up once before but I don't know if anyone fully 
investigated to see if there is another solution


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