Github user li-zhihui commented on a diff in the pull request:

    https://github.com/apache/spark/pull/900#discussion_r14225397
  
    --- Diff: 
yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala 
---
    @@ -164,6 +164,7 @@ class ApplicationMaster(args: 
ApplicationMasterArguments, conf: Configuration,
     
       private def startUserClass(): Thread = {
         logInfo("Starting the user JAR in a separate Thread")
    +    System.setProperty("spark.executor.instances", 
args.numExecutors.toString)
    --- End diff --
    
    It's for yarn-cluster mode.
    In yarn-cluster mode, Driver run in yarn container and lost System config 
which set in client.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to