ZEPPELIN-46: set only non-empty values for for spark.* properties#38
ZEPPELIN-46: set only non-empty values for for spark.* properties#38bzz wants to merge 11 commits intoapache:masterfrom
Conversation
|
So far this does not have any tests. |
|
@bzz Simply add this test in SparkInterpreterTest.java |
|
@bzz My test is not perfect. I'll change it |
There was a problem hiding this comment.
what about if val is whitespace? eg. " "
There was a problem hiding this comment.
@felixcheung trim() will make whitespace removed. Tests case is not covered all of cases. I make a PR of @bzz and he will fix this.
There was a problem hiding this comment.
Then val.trim().isEmpty() is true, so it will be set for any property, that does not start with "spark." (i.e whitespace as a password)
- Fixed styles - Fixed some test cases
- Fixed styles
- Fixed unused imports
[ZEPPELIN-46] Some spark env must have a valid value
There was a problem hiding this comment.
@bzz Sorry, I didn't reformat this. This needs one space between 'if' and '('.
|
Ready to merge |
|
LGTM |
|
I have just applied this patch and there still seems to be an issue. |
|
Merging if there is no discussion |


https://issues.apache.org/jira/browse/ZEPPELIN-46