Uh oh!
There was an error while loading. Please reload this page.
Remove duplicated java option concats in common.sh - #749
Conversation
Leemoonsoo
commented
Mar 1, 2016
Thanks @zhongneu for the patch. |
Leemoonsoo
commented
Mar 1, 2016
Merge if there're no more discsussions |
felixcheung
commented
Mar 1, 2016
what if someone has set JAVA_OPTS in the env? shouldn't we be additive? |
zhongneu
commented
Mar 2, 2016
@felixcheung I am not sure about this, but I would like to make it additive if we have such case. |
Leemoonsoo
commented
Mar 3, 2016
I think @felixcheung got valid point. It's incompatible change to people who has JAVA_OPTS. |
felixcheung
commented
Mar 3, 2016
That sounds like a reasonable approach, we could say something like |
zhongneu
commented
Mar 4, 2016
I've reverted the change for JAVA_OPTS, which is fine, because it is not used by bin/interpreter.sh |
Leemoonsoo
commented
Mar 5, 2016
LGTM |
felixcheung
commented
Mar 5, 2016
looks good. I think we might want to deprecate JAVA_INTP_OPTS and replace with something more Zeppelin specific for clarify, and allow for admin to override it. |
### What is this PR for? There are some java option concats in common.sh, which are executed twice when start an interpreter. This makes some of the options invalid, such as remote debugging options ### What type of PR is it? Bug Fix ### Todos ### Is there a relevant Jira issue? [ZEPPELIN-686](https://issues.apache.org/jira/browse/ZEPPELIN-686) ### How should this be tested? Set remote debug options: ``` export ZEPPELIN_INTP_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n ``` Start the Zeppelin daemon, then create & run a job to trigger starting an interpreter. The job should fail without the fix. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? NO * Is there breaking changes for older versions? NO * Does this needs documentation? NO Author: Zhong Wang <wangzhong.neu@gmail.com> Closesapache#749 from zhongneu/fix-duplicated-java-opts and squashes the following commits: f89dbb6 [Zhong Wang] revert change for JAVA_OPTS for compatibility 75959ea [Zhong Wang] remove unneccessary concats in common.sh
### What is this PR for? There are some java option concats in common.sh, which are executed twice when start an interpreter. This makes some of the options invalid, such as remote debugging options ### What type of PR is it? Bug Fix ### Todos ### Is there a relevant Jira issue? [ZEPPELIN-686](https://issues.apache.org/jira/browse/ZEPPELIN-686) ### How should this be tested? Set remote debug options: ``` export ZEPPELIN_INTP_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n ``` Start the Zeppelin daemon, then create & run a job to trigger starting an interpreter. The job should fail without the fix. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? NO * Is there breaking changes for older versions? NO * Does this needs documentation? NO Author: Zhong Wang <wangzhong.neu@gmail.com> Closesapache#749 from zhongneu/fix-duplicated-java-opts and squashes the following commits: f89dbb6 [Zhong Wang] revert change for JAVA_OPTS for compatibility 75959ea [Zhong Wang] remove unneccessary concats in common.sh
What is this PR for?
There are some java option concats in common.sh, which are executed twice when start an interpreter. This makes some of the options invalid, such as remote debugging options
What type of PR is it?
Bug Fix
Todos
Is there a relevant Jira issue?
ZEPPELIN-686
How should this be tested?
Set remote debug options:
Start the Zeppelin daemon, then create & run a job to trigger starting an interpreter. The job should fail without the fix.
Screenshots (if appropriate)
Questions:
NO
NO
NO