-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Remove duplicated java option concats in common.sh #749
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
Conversation
|
Thanks @zhongneu for the patch. |
|
Merge if there're no more discsussions |
|
what if someone has set JAVA_OPTS in the env? shouldn't we be additive? |
|
@felixcheung I am not sure about this, but I would like to make it additive if we have such case. |
|
I think @felixcheung got valid point. It's incompatible change to people who has JAVA_OPTS. |
|
That sounds like a reasonable approach, we could say something like |
|
I've reverted the change for JAVA_OPTS, which is fine, because it is not used by bin/interpreter.sh |
|
LGTM |
|
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> Closes apache#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> Closes apache#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