-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-2382] Fixed windows compatibility of interpreter binding. #2305
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
[ZEPPELIN-2382] Fixed windows compatibility of interpreter binding. #2305
Conversation
The script previously modified the CLASSPATH variable. This may lead to an undesired side effect, where the zeppelin server classpath is exported to the zeppelin interpreter classpath, see JIRA issue ZEPPELIN-2375 for details. Instead of modifying classpath we now work the other way around and set ZEPPELIN_CLASSPATH or ZEPPELIN_INT_CLASSPATH to include CLASSPATH and then use ZEPPELIN_CLASSPATH or ZEPPELIN_INT_CLASSPATH in the corresponding exec (runner), respectively. See also https://issues.apache.org/jira/browse/ZEPPELIN-2375
On Windows system the Files.setPosixFilePermissions will (currently) fail. For the case that the operation is not supported we just continue (keep finger crossed) (on windows the file apparently has the right permissions).
|
The reporter of https://issues.apache.org/jira/browse/ZEPPELIN-2382 has checked the corresponding build. This pr fixes [ZEPPELIN-2382]. |
|
I confirm this works. |
|
The tests are not failing. See Travis: (there is some issue with Jenkins/Travis which make tests sometimes fails). |
|
(Sorry for the stupid question: what is the workaround if Jenkins fails but Travis succeeds on a re-run? Close and Re-Open? Could anyone just restart Jenkins?). |
|
@cfries yes, close and re-open will trigger Jenkins and get latest travis job result. |
|
LGTM and merge to master and branch-0.7 if no further comments |
### What is this PR for? Fixing ZEPPELIN-2382: A fresh install of Zeppelin 0.7.1 failed to start on a Windows due to the use of [getPosixFilePermissions](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#getPosixFilePermissions(java.nio.file.Path,%20java.nio.file.LinkOption...)) This method fails on Windows with an UnsupportedOperationException - however, recovering (that is ignoring the exception) appears to have no negative effects. (For a discussion on this related to a different project see, e.g., GoogleCloudPlatform/cloud-code-intellij#937 ) ### What type of PR is it? [Bug Fix] ### Todos * [x] - Have the binary distribution checked by the reporter of [ZEPPELIN-2382] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2382 ### How should this be tested? Check if clean distribution runs on Windows. Important: Ensure that HADOOP_HOME points to a folder containing bin/winutils.exe since this pull request does not include a fix for https://issues.apache.org/jira/browse/ZEPPELIN-2438 (which is part of a separate pull request). ### Screenshots (if appropriate) N/A ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Christian Fries <[email protected]> Closes #2305 from cfries/windows-compatiblity-interpreter-binding and squashes the following commits: e3b5738 [Christian Fries] Added graceful exception handling if posix permission is not available 096fed6 [Christian Fries] Merge branch 'master' into apache/master 3635ed8 [Christian Fries] [ZEPPELIN-2375]: Avoid modification of CLASSPATH variable. (cherry picked from commit fb80bf7) Signed-off-by: Lee moon soo <[email protected]>
### What is this PR for? Fixing ZEPPELIN-2382: A fresh install of Zeppelin 0.7.1 failed to start on a Windows due to the use of [getPosixFilePermissions](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#getPosixFilePermissions(java.nio.file.Path,%20java.nio.file.LinkOption...)) This method fails on Windows with an UnsupportedOperationException - however, recovering (that is ignoring the exception) appears to have no negative effects. (For a discussion on this related to a different project see, e.g., GoogleCloudPlatform/cloud-code-intellij#937 ) ### What type of PR is it? [Bug Fix] ### Todos * [x] - Have the binary distribution checked by the reporter of [ZEPPELIN-2382] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2382 ### How should this be tested? Check if clean distribution runs on Windows. Important: Ensure that HADOOP_HOME points to a folder containing bin/winutils.exe since this pull request does not include a fix for https://issues.apache.org/jira/browse/ZEPPELIN-2438 (which is part of a separate pull request). ### Screenshots (if appropriate) N/A ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Christian Fries <[email protected]> Closes apache#2305 from cfries/windows-compatiblity-interpreter-binding and squashes the following commits: e3b5738 [Christian Fries] Added graceful exception handling if posix permission is not available 096fed6 [Christian Fries] Merge branch 'master' into apache/master 3635ed8 [Christian Fries] [ZEPPELIN-2375]: Avoid modification of CLASSPATH variable.
What is this PR for?
Fixing ZEPPELIN-2382:
A fresh install of Zeppelin 0.7.1 failed to start on a Windows due to the use of getPosixFilePermissions
This method fails on Windows with an UnsupportedOperationException - however, recovering (that is ignoring the exception) appears to have no negative effects. (For a discussion on this related to a different project see, e.g., GoogleCloudPlatform/cloud-code-intellij#937 )
What type of PR is it?
[Bug Fix]
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2382
How should this be tested?
Check if clean distribution runs on Windows. Important: Ensure that HADOOP_HOME points to a folder containing bin/winutils.exe since this pull request does not include a fix for https://issues.apache.org/jira/browse/ZEPPELIN-2438 (which is part of a separate pull request).
Screenshots (if appropriate)
N/A
Questions:
Does the licenses files need update?
No
Is there breaking changes for older versions?
No
Does this needs documentation?
No