Skip to content

Conversation

@cfries
Copy link
Contributor

@cfries cfries commented Apr 30, 2017

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

  • - 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

cfries added 3 commits April 8, 2017 22:42
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).
@cfries
Copy link
Contributor Author

cfries commented May 1, 2017

The reporter of https://issues.apache.org/jira/browse/ZEPPELIN-2382 has checked the corresponding build. This pr fixes [ZEPPELIN-2382].

@ghost
Copy link

ghost commented May 2, 2017

I confirm this works.
If the tests weren't failing i'd say LGTM.

@cfries
Copy link
Contributor Author

cfries commented May 2, 2017

The tests are not failing. See Travis:
https://travis-ci.org/cfries/zeppelin/builds/227424005

(there is some issue with Jenkins/Travis which make tests sometimes fails).

@cfries
Copy link
Contributor Author

cfries commented May 2, 2017

(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?).

@Leemoonsoo
Copy link
Member

@cfries yes, close and re-open will trigger Jenkins and get latest travis job result.

@cfries cfries closed this May 2, 2017
@cfries cfries reopened this May 2, 2017
@Leemoonsoo
Copy link
Member

LGTM and merge to master and branch-0.7 if no further comments

asfgit pushed a commit that referenced this pull request May 6, 2017
### 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]>
@asfgit asfgit closed this in fb80bf7 May 6, 2017
michelemilesi pushed a commit to icteam-spa/zeppelin that referenced this pull request May 11, 2017
### 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants