{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8832","labels_url":"https://api.github.com/repos/apache/spark/issues/8832/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8832/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8832/events","html_url":"https://github.com/apache/spark/pull/8832","id":107292472,"number":8832,"title":"[SPARKR][SPARK-10711] Do not assume spark.submit.deployMode is always set","user":{"login":"falaki","id":512364,"avatar_url":"https://avatars.githubusercontent.com/u/512364?v=3","gravatar_id":"","url":"https://api.github.com/users/falaki","html_url":"https://github.com/falaki","followers_url":"https://api.github.com/users/falaki/followers","following_url":"https://api.github.com/users/falaki/following{/other_user}","gists_url":"https://api.github.com/users/falaki/gists{/gist_id}","starred_url":"https://api.github.com/users/falaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falaki/subscriptions","organizations_url":"https://api.github.com/users/falaki/orgs","repos_url":"https://api.github.com/users/falaki/repos","events_url":"https://api.github.com/users/falaki/events{/privacy}","received_events_url":"https://api.github.com/users/falaki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-18T23:01:20Z","updated_at":"2015-09-19T01:45:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8832","html_url":"https://github.com/apache/spark/pull/8832","diff_url":"https://github.com/apache/spark/pull/8832.diff","patch_url":"https://github.com/apache/spark/pull/8832.patch"},"body":"In ```RUtils.sparkRPackagePath()``` we \r\n1. Call ``` sys.props(\"spark.submit.deployMode\")``` which returns null if ```spark.submit.deployMode``` is not suet\r\n2. Call ``` sparkConf.get(\"spark.submit.deployMode\")``` which throws ```NoSuchElementException``` if ```spark.submit.deployMode``` is not set. This patch simply passes a default value (\"cluster\") for ```spark.submit.deployMode```.\r\n\r\ncc @rxin "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/141607465","html_url":"https://github.com/apache/spark/pull/8832#issuecomment-141607465","issue_url":"https://api.github.com/repos/apache/spark/issues/8832","id":141607465,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T01:45:29Z","updated_at":"2015-09-19T01:45:29Z","body":"  [Test build #42699 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42699/console) for   PR 8832 at commit [`8b80886`](https://github.com/apache/spark/commit/8b80886f6be8b7df16d8d72190f3bc0b4a1611d5).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}