[ZEPPELIN-4821] Spark interpreter uses incorrect property name#3773
[ZEPPELIN-4821] Spark interpreter uses incorrect property name#3773alexott wants to merge 1 commit intoapache:masterfrom
Conversation
|
@zjffdu can you look when you have a time? |
| } | ||
| } | ||
| // use local mode for embedded spark mode when spark.master is not found | ||
| conf.setIfMissing("spark.master", "local"); |
There was a problem hiding this comment.
I think this is the line of code that cause the issue in the mail-list
|
@alexott Overall I agree with using |
|
I agree with that Jeff - I was just thinking about migration path, etc. Give me a couple of days to fix that... |
f8ebf28 to
e2994d8
Compare
b8ef0f9 to
5433ac8
Compare
40aa11d to
9bc63f9
Compare
|
@alexott is this ready to be reviewed again ? |
|
@zjffdu not yet - I need to rebase it on top of the Travis-CI cleanup effort, and re-check again... |
7f06132 to
6a8076c
Compare
|
@zjffdu now it's ready for review as well... tests are finally passing. I modified Spark launcher to use |
|
|
||
| REM set JAVA_HOME= | ||
| REM set MASTER= REM Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode. | ||
| REM set SPARK_MASTER= REM Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode. |
There was a problem hiding this comment.
Not aligned with other rows
There was a problem hiding this comment.
yeah, the both files contained a mix of tabs & spaces, why it wasn't catch up...
Fixed in both
|
|
||
| # export JAVA_HOME= | ||
| # export MASTER= # Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode. | ||
| # export SPARK_MASTER= # Spark master url. eg. spark://master_addr:7077. Leave empty if you want to use local mode. |
There was a problem hiding this comment.
Not aligned with other rows
|
LGTM |
### What is this PR for? Spark interpreter did use incorrect property name for Spark Master - `master`, although a lot of code was dependent on `spark.master` - it's better to use only one name everywhere ### What type of PR is it? Bug Fix ### What is the Jira issue? * ZEPPELIN-4821 ### How should this be tested? * https://travis-ci.org/github/alexott/zeppelin/builds/699582429 Author: Alex Ott <alexott@apache.org> Closes #3773 from alexott/ZEPPELIN-4821 and squashes the following commits: 82b8321 [Alex Ott] [ZEPPELIN-4821] Spark interpreter uses incorrect property name (cherry picked from commit a282e78) Signed-off-by: Alex Ott <alexott@apache.org>
What is this PR for?
Spark interpreter did use incorrect property name for Spark Master -
master, although a lot of code was dependent onspark.master- it's better to use only one name everywhereWhat type of PR is it?
Bug Fix
What is the Jira issue?
How should this be tested?