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

    https://github.com/apache/spark/pull/11721#discussion_r56285494
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala ---
    @@ -133,12 +133,9 @@ private[spark] class ApplicationMaster(
             System.setProperty("spark.master", "yarn")
             System.setProperty("spark.submit.deployMode", "cluster")
     
    -        // Propagate the application ID so that 
YarnClusterSchedulerBackend can pick it up.
    +        // Set this internal configuration to true if it is running on 
cluster mode, this
    +        // configuration will be checked in SparkContext to avoid misuse 
of yarn cluster mode.
             System.setProperty("spark.yarn.app.id", 
appAttemptId.getApplicationId().toString())
    --- End diff --
    
    Using configuration is a simple and safe way to check the misuse of 
configuration, so here I revert back this configuration `spark.yarn.app.id`, 
but only use to check whether app is running on yarn-cluster mode correctly.


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