Github user WangTaoTheTonic commented on the pull request:

    https://github.com/apache/spark/pull/3557#issuecomment-69430615
  
    I am afraid it is not.
    In cluster mode, in `SparkSubmitArguments.scala` will be assigned with 
`mainClass` if `spark.app.name` or `--name` is not specified as it will not 
read `SPARK_YARN_APP_NAME`.
    Then in `SparkSubmit.scala` it will pass `args.name` in format of 
`spark.app.name` and `--name`  to `org.apache.spark.deploy.yarn.Client`.
    
     `yarn.Client.scala` transform the args to a ClientArguments object, in 
which `appName` will only get  its value from `--name`.
    
    So, in the progress, the app name would never get value from the env 
`SPARK_YARN_APP_NAME`. It is only used in client mode.


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