Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/539#issuecomment-41698742
  
    Hi Tom.
    
    SPARK_YARN_APP_NAME works fine. What doesn't work is when you do not set 
that env variable; in that case, the app name in the RM will always be "Spark", 
instead of the app name set in your app's SparkConf instance. Unless you 
explicitly set the app name using a JVM system property 
("-Dspark.app.name=foo").
    
    So:
    - set SPARK_YARN_APP_NAME: works fine
    - pass "-Dspark.app.name=foo" in command line: works fine
    - do "new SparkConf().setAppName("foo")": does not work (RM app name is 
"Spark")



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

Reply via email to