GitHub user falaki opened a pull request: https://github.com/apache/spark/pull/8832
[SPARKR][SPARK-10711] Do not assume spark.submit.deployMode is always set In ```RUtils.sparkRPackagePath()``` we 1. Call ``` sys.props("spark.submit.deployMode")``` which returns null if ```spark.submit.deployMode``` is not suet 2. 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```. cc @rxin You can merge this pull request into a Git repository by running: $ git pull https://github.com/falaki/spark SPARK-10711 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8832.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #8832 ---- commit 854e5abb2aee9302755fd119580a0e437be008f0 Author: Hossein <hoss...@databricks.com> Date: 2015-09-18T22:53:19Z Assume a default value for spark.submit.deployMode in RUtils commit 8b80886f6be8b7df16d8d72190f3bc0b4a1611d5 Author: Hossein <hoss...@databricks.com> Date: 2015-09-18T23:00:25Z Changed default value for spark.submit.deployMode to cluster ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org