GitHub user cfries opened a pull request: https://github.com/apache/zeppelin/pull/2294
[ZEPPELIN-2438]: Add local winutils.exe in build step and use if required ⦠### What is this PR for? Add local winutils.exe in build and use as temporary HADOOP_HOME if required on run (windows only). The build of the spark dependencies now downloads winutils.exe and installs it in interpreter/spark/winutils. The zeppelin-env.cmd (only used if we run on windows) then checks if HADOOP_HOME exists, if not, it will set it to point to winutils. This is required to have the spark interpreter work in Windows. In order to have this active, the zeppelin-env.cmd had to be removed from the .gitignore. ### What type of PR is it? [Bug Fix | Improvement] Without this fix, the binary distribution or a local build of Zeppelin will have the spark interpreter (default interpreter) fail on a Windows platform (unless the user follows additional / manual installation steps or already has a local HADOOP). This will frustrate users trying to checkout Zeppelin. For users having HADOOP or macOS/Linux users, the chance will have no effect. ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2438 ### How should this be tested? - Non-Regression Test - Standard Unit Test - Run Zeppelin without additional installations (except Java) on Windows ### 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 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cfries/zeppelin windows-compatiblity Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/2294.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2294 ---- commit 303511f15dc95b0b75b224607f79ef00229392ba Author: Christian Fries <em...@christian-fries.de> Date: 2017-04-27T17:19:28Z [ZEPPELIN-2438]: Add local winutils.exe in build and use if required on run. The build of the spark dependencies now downloads winutils.exe and installs it in interpreter/spark/winutils. The zeppelin-env.cmd (only used if we run on windows) then checks if HADOOP_HOME exists, if not, it will set it to point to winutils. This is required to have the spark interpreter work in Windows. In order to have this active, the zeppelin-env.cmd had to be removed from the .gitignore. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---