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

    https://github.com/apache/spark/pull/6083#discussion_r30178058
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
    @@ -448,6 +448,15 @@ class SparkConf(loadDefaults: Boolean) extends 
Cloneable with Logging {
             }
           }
         }
    +
    +    // System property spark.yarn.app.id must be set if user code ran by 
AM on a YARN cluster
    +    // yarn-standalone is deprecated, but still supported
    +    if ((get("spark.master") == "yarn-cluster" || get("spark.master") == 
"yarn-standalone") &&
    --- End diff --
    
    What we do here is actually an act of validating the configuration. It 
seems to be a good place inside `validateSettings`. There are no information 
required from outside to do this check.


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