{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/30178412","id":30178412,"diff_hunk":"@@ -448,6 +448,15 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging {\n         }\n       }\n     }\n+\n+    // System property spark.yarn.app.id must be set if user code ran by AM on a YARN cluster\n+    // yarn-standalone is deprecated, but still supported\n+    if ((get(\"spark.master\") == \"yarn-cluster\" || get(\"spark.master\") == \"yarn-standalone\") &&","path":"core/src/main/scala/org/apache/spark/SparkConf.scala","position":7,"original_position":7,"commit_id":"7c89b6e62732b5a7af56aa290164b56b65a9a8b5","original_commit_id":"7c89b6e62732b5a7af56aa290164b56b65a9a8b5","user":{"login":"vanzin","id":1694083,"avatar_url":"https://avatars.githubusercontent.com/u/1694083?v=3","gravatar_id":"","url":"https://api.github.com/users/vanzin","html_url":"https://github.com/vanzin","followers_url":"https://api.github.com/users/vanzin/followers","following_url":"https://api.github.com/users/vanzin/following{/other_user}","gists_url":"https://api.github.com/users/vanzin/gists{/gist_id}","starred_url":"https://api.github.com/users/vanzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanzin/subscriptions","organizations_url":"https://api.github.com/users/vanzin/orgs","repos_url":"https://api.github.com/users/vanzin/repos","events_url":"https://api.github.com/users/vanzin/events{/privacy}","received_events_url":"https://api.github.com/users/vanzin/received_events","type":"User","site_admin":false},"body":"`SparkConf` is not just for `SparkContext`.","created_at":"2015-05-12T20:46:36Z","updated_at":"2015-05-12T20:46:36Z","html_url":"https://github.com/apache/spark/pull/6083#discussion_r30178412","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/6083","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/30178412"},"html":{"href":"https://github.com/apache/spark/pull/6083#discussion_r30178412"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/6083"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6083","id":35237264,"html_url":"https://github.com/apache/spark/pull/6083","diff_url":"https://github.com/apache/spark/pull/6083.diff","patch_url":"https://github.com/apache/spark/pull/6083.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/6083","number":6083,"state":"open","locked":false,"title":"[SPARK-7504] [YARN] NullPointerException when initializing SparkContext in YARN-cluster mode","user":{"login":"ehnalis","id":8371789,"avatar_url":"https://avatars.githubusercontent.com/u/8371789?v=3","gravatar_id":"","url":"https://api.github.com/users/ehnalis","html_url":"https://github.com/ehnalis","followers_url":"https://api.github.com/users/ehnalis/followers","following_url":"https://api.github.com/users/ehnalis/following{/other_user}","gists_url":"https://api.github.com/users/ehnalis/gists{/gist_id}","starred_url":"https://api.github.com/users/ehnalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehnalis/subscriptions","organizations_url":"https://api.github.com/users/ehnalis/orgs","repos_url":"https://api.github.com/users/ehnalis/repos","events_url":"https://api.github.com/users/ehnalis/events{/privacy}","received_events_url":"https://api.github.com/users/ehnalis/received_events","type":"User","site_admin":false},"body":"Added a simple checking for SparkContext.\r\nAlso added two rational checking against null at AM object.","created_at":"2015-05-12T15:17:06Z","updated_at":"2015-05-12T20:46:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"982e8f21c4e427ae06ea8c8ddb0f327983f9aaa0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/6083/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/6083/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/6083/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/7c89b6e62732b5a7af56aa290164b56b65a9a8b5","head":{"label":"ehnalis:cluster","ref":"cluster","sha":"7c89b6e62732b5a7af56aa290164b56b65a9a8b5","user":{"login":"ehnalis","id":8371789,"avatar_url":"https://avatars.githubusercontent.com/u/8371789?v=3","gravatar_id":"","url":"https://api.github.com/users/ehnalis","html_url":"https://github.com/ehnalis","followers_url":"https://api.github.com/users/ehnalis/followers","following_url":"https://api.github.com/users/ehnalis/following{/other_user}","gists_url":"https://api.github.com/users/ehnalis/gists{/gist_id}","starred_url":"https://api.github.com/users/ehnalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehnalis/subscriptions","organizations_url":"https://api.github.com/users/ehnalis/orgs","repos_url":"https://api.github.com/users/ehnalis/repos","events_url":"https://api.github.com/users/ehnalis/events{/privacy}","received_events_url":"https://api.github.com/users/ehnalis/received_events","type":"User","site_admin":false},"repo":{"id":35329540,"name":"spark","full_name":"ehnalis/spark","owner":{"login":"ehnalis","id":8371789,"avatar_url":"https://avatars.githubusercontent.com/u/8371789?v=3","gravatar_id":"","url":"https://api.github.com/users/ehnalis","html_url":"https://github.com/ehnalis","followers_url":"https://api.github.com/users/ehnalis/followers","following_url":"https://api.github.com/users/ehnalis/following{/other_user}","gists_url":"https://api.github.com/users/ehnalis/gists{/gist_id}","starred_url":"https://api.github.com/users/ehnalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehnalis/subscriptions","organizations_url":"https://api.github.com/users/ehnalis/orgs","repos_url":"https://api.github.com/users/ehnalis/repos","events_url":"https://api.github.com/users/ehnalis/events{/privacy}","received_events_url":"https://api.github.com/users/ehnalis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ehnalis/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/ehnalis/spark","forks_url":"https://api.github.com/repos/ehnalis/spark/forks","keys_url":"https://api.github.com/repos/ehnalis/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ehnalis/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ehnalis/spark/teams","hooks_url":"https://api.github.com/repos/ehnalis/spark/hooks","issue_events_url":"https://api.github.com/repos/ehnalis/spark/issues/events{/number}","events_url":"https://api.github.com/repos/ehnalis/spark/events","assignees_url":"https://api.github.com/repos/ehnalis/spark/assignees{/user}","branches_url":"https://api.github.com/repos/ehnalis/spark/branches{/branch}","tags_url":"https://api.github.com/repos/ehnalis/spark/tags","blobs_url":"https://api.github.com/repos/ehnalis/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ehnalis/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ehnalis/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ehnalis/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ehnalis/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ehnalis/spark/languages","stargazers_url":"https://api.github.com/repos/ehnalis/spark/stargazers","contributors_url":"https://api.github.com/repos/ehnalis/spark/contributors","subscribers_url":"https://api.github.com/repos/ehnalis/spark/subscribers","subscription_url":"https://api.github.com/repos/ehnalis/spark/subscription","commits_url":"https://api.github.com/repos/ehnalis/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ehnalis/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ehnalis/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ehnalis/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ehnalis/spark/contents/{+path}","compare_url":"https://api.github.com/repos/ehnalis/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ehnalis/spark/merges","archive_url":"https://api.github.com/repos/ehnalis/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ehnalis/spark/downloads","issues_url":"https://api.github.com/repos/ehnalis/spark/issues{/number}","pulls_url":"https://api.github.com/repos/ehnalis/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ehnalis/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ehnalis/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ehnalis/spark/labels{/name}","releases_url":"https://api.github.com/repos/ehnalis/spark/releases{/id}","created_at":"2015-05-09T13:28:05Z","updated_at":"2015-05-09T13:28:26Z","pushed_at":"2015-05-12T20:10:32Z","git_url":"git://github.com/ehnalis/spark.git","ssh_url":"git@github.com:ehnalis/spark.git","clone_url":"https://github.com/ehnalis/spark.git","svn_url":"https://github.com/ehnalis/spark","homepage":null,"size":106081,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"f3e8e60063ccf0d713d03e671a3231560475f90d","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-05-12T20:20:19Z","pushed_at":"2015-05-12T20:37:09Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1655193,"stargazers_count":3940,"watchers_count":3940,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3460,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":306,"forks":3460,"open_issues":306,"watchers":3940,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/6083"},"html":{"href":"https://github.com/apache/spark/pull/6083"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/6083"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/6083/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/6083/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/6083/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/7c89b6e62732b5a7af56aa290164b56b65a9a8b5"}}}}