{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/3557","labels_url":"https://api.github.com/repos/apache/spark/issues/3557/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/3557/comments","events_url":"https://api.github.com/repos/apache/spark/issues/3557/events","html_url":"https://github.com/apache/spark/pull/3557","id":50663272,"number":3557,"title":"[SPARK-4697][YARN]System properties should override environment variables","user":{"login":"WangTaoTheTonic","id":5276001,"avatar_url":"https://avatars.githubusercontent.com/u/5276001?v=3","gravatar_id":"","url":"https://api.github.com/users/WangTaoTheTonic","html_url":"https://github.com/WangTaoTheTonic","followers_url":"https://api.github.com/users/WangTaoTheTonic/followers","following_url":"https://api.github.com/users/WangTaoTheTonic/following{/other_user}","gists_url":"https://api.github.com/users/WangTaoTheTonic/gists{/gist_id}","starred_url":"https://api.github.com/users/WangTaoTheTonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangTaoTheTonic/subscriptions","organizations_url":"https://api.github.com/users/WangTaoTheTonic/orgs","repos_url":"https://api.github.com/users/WangTaoTheTonic/repos","events_url":"https://api.github.com/users/WangTaoTheTonic/events{/privacy}","received_events_url":"https://api.github.com/users/WangTaoTheTonic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2014-12-02T15:10:16Z","updated_at":"2015-01-10T01:46:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/3557","html_url":"https://github.com/apache/spark/pull/3557","diff_url":"https://github.com/apache/spark/pull/3557.diff","patch_url":"https://github.com/apache/spark/pull/3557.patch"},"body":"I found some arguments in yarn module take environment variables before system properties while the latter override the former in core module."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/69432493","html_url":"https://github.com/apache/spark/pull/3557#issuecomment-69432493","issue_url":"https://api.github.com/repos/apache/spark/issues/3557","id":69432493,"user":{"login":"WangTaoTheTonic","id":5276001,"avatar_url":"https://avatars.githubusercontent.com/u/5276001?v=3","gravatar_id":"","url":"https://api.github.com/users/WangTaoTheTonic","html_url":"https://github.com/WangTaoTheTonic","followers_url":"https://api.github.com/users/WangTaoTheTonic/followers","following_url":"https://api.github.com/users/WangTaoTheTonic/following{/other_user}","gists_url":"https://api.github.com/users/WangTaoTheTonic/gists{/gist_id}","starred_url":"https://api.github.com/users/WangTaoTheTonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangTaoTheTonic/subscriptions","organizations_url":"https://api.github.com/users/WangTaoTheTonic/orgs","repos_url":"https://api.github.com/users/WangTaoTheTonic/repos","events_url":"https://api.github.com/users/WangTaoTheTonic/events{/privacy}","received_events_url":"https://api.github.com/users/WangTaoTheTonic/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T01:46:06Z","updated_at":"2015-01-10T01:46:06Z","body":"Or we could just make SPARK_YARN_APP_NAME disappear? As the env variable is not recommended and it will cause different behavior. User can still use `spark.app.name`.\r\n\r\nOr we should make SPARK_YARN_APP_NAME and spark.app.name a special case in `YarnClientSchedulerBackend.scala` ?\r\n\r\nWhat do you two think? @tgravescs @andrewor14 "}}