{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7751","labels_url":"https://api.github.com/repos/apache/spark/issues/7751/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7751/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7751/events","html_url":"https://github.com/apache/spark/pull/7751","id":97976284,"number":7751,"title":"[SPARK-7736] [core] [yarn] Make pyspark fail YARN app on failure.","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":49,"created_at":"2015-07-29T16:35:38Z","updated_at":"2015-08-11T23:37:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7751","html_url":"https://github.com/apache/spark/pull/7751","diff_url":"https://github.com/apache/spark/pull/7751.diff","patch_url":"https://github.com/apache/spark/pull/7751.patch"},"body":"The YARN backend doesn't like when user code calls `System.exit`,\r\nsince it cannot know the exit status and thus cannot set an\r\nappropriate final status for the application.\r\n\r\nSo, for pyspark, avoid that call and instead throw an exception with\r\nthe exit code. SparkSubmit handles that exception and exits with\r\nthe given exit code, while YARN uses the exit code as the failure\r\ncode for the Spark app."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/130112103","html_url":"https://github.com/apache/spark/pull/7751#issuecomment-130112103","issue_url":"https://api.github.com/repos/apache/spark/issues/7751","id":130112103,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T23:37:57Z","updated_at":"2015-08-11T23:37:57Z","body":"Merged build started."}}