GitHub user andrewor14 opened a pull request: https://github.com/apache/spark/pull/846
[SPARK-1896] Respect spark.master before MASTER in REPL The hierarchy for the shell is as follows: ``` MASTER > --master > spark.master (spark-defaults.conf) ``` This is inconsistent with the way we run normal applications, which is: ``` --master > spark.master (spark-defaults.conf) > MASTER ``` I was trying to run a shell locally on a standalone cluster launched through the ec2 scripts, which automatically set `MASTER` in spark-env.sh. It was surprising to me that `--master` didn't take effect. You can merge this pull request into a Git repository by running: $ git pull https://github.com/andrewor14/spark shell-master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/846.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 #846 ---- commit 2cb81c9ed313976e23ae169c20bc930efc259756 Author: Andrew Or <andrewo...@gmail.com> Date: 2014-05-21T18:43:36Z Respect spark.master before MASTER in REPL ---- --- 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. ---