Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-1896] Respect spark.master (and --master) before MASTER in spark-shell #846

Closed
wants to merge 1 commit into from

Conversation

andrewor14
Copy link
Contributor

The hierarchy for configuring the Spark master in 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, considering that this is the way we tell users to set their masters here.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15122/

@andrewor14
Copy link
Contributor Author

Jenkins test this please

@andrewor14 andrewor14 changed the title [SPARK-1896] Respect spark.master before MASTER in REPL [SPARK-1896] Respect --master and spark.master before MASTER in REPL May 21, 2014
@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@andrewor14 andrewor14 changed the title [SPARK-1896] Respect --master and spark.master before MASTER in REPL [SPARK-1896] Respect spark.master (and --master) before MASTER in REPL May 21, 2014
@andrewor14 andrewor14 changed the title [SPARK-1896] Respect spark.master (and --master) before MASTER in REPL [SPARK-1896] Respect spark.master (and --master) before MASTER in spark-shell May 21, 2014
@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15130/

@tdas
Copy link
Contributor

tdas commented May 23, 2014

LGTM. Merging this. Thanks!

@asfgit asfgit closed this in cce7745 May 23, 2014
asfgit pushed a commit that referenced this pull request May 23, 2014
…rk-shell

The hierarchy for configuring the Spark master in 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, considering that this is the way we tell users to set their masters [here](http://people.apache.org/~pwendell/spark-1.0.0-rc7-docs/scala-programming-guide.html#initializing-spark).

Author: Andrew Or <andrewor14@gmail.com>

Closes #846 from andrewor14/shell-master and squashes the following commits:

2cb81c9 [Andrew Or] Respect spark.master before MASTER in REPL

(cherry picked from commit cce7745)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@andrewor14 andrewor14 deleted the shell-master branch June 9, 2014 17:47
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
…rk-shell

The hierarchy for configuring the Spark master in 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, considering that this is the way we tell users to set their masters [here](http://people.apache.org/~pwendell/spark-1.0.0-rc7-docs/scala-programming-guide.html#initializing-spark).

Author: Andrew Or <andrewor14@gmail.com>

Closes apache#846 from andrewor14/shell-master and squashes the following commits:

2cb81c9 [Andrew Or] Respect spark.master before MASTER in REPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants