Error while configuring Apache Zeppelin on Windows 10

匿名 (未验证) 提交于 2019-12-03 01:28:01

问题:

I get the following error while trying to install and configure Apache Zeppelin on Windows 10:

org.apache.zeppelin.interpreter.InterpreterException: The filename,  directory name, or volume label syntax is incorrect at org.apache.zeppelin.interpreter.remote.RemoteInterpreterManagedProcess.start(RemoteInterpreterManagedProcess.java:143) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.reference(RemoteInterpreterProcess.java:73) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:265) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:430) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getFormType(LazyOpenInterpreter.java:111) at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:387) at org.apache.zeppelin.scheduler.Job.run(Job.java:175) at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:329) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

I followed below steps:
1. Downloaded and extracted folder to some location.
2. Download Java and set JAVA_HOME
3. Downloaded hadoop and set HADOOP_HOME
4. Ran zeppelin.cmd from bin folder
5. Opened zeppelin in a browser and ran example code.

回答1:

I just spent a whole day trying to get Zeppelin to work on Windows 10, so I know the pain. I'll outline the steps I took so you might see what went wrong with yours:

My environment: Windows 10 with latest updates. No Spark or Hadoop installed. Java 8.

  • Download zeppelin binary from https://zeppelin.apache.org/download.html and extract it somewhere you like (I have Zeppelin 0.7.3 with all-interpreters)
  • Make sure you have a java jdk installed and that you have JAVA_HOME set correctly (mine is set to C:\Program Files\Java\jdk1.8.0_162)
  • Create a folder for putting Hadoop stuff (e.g. C:\Hadoop\hadoop-2.8.1)
  • Set the HADOOP_HOME environment variable to the above folder
  • Get the Hadoop binaries for windows. These can be obtained from https://github.com/steveloughran/winutils. Extract them into a 'bin' folder inside your HADOOP_HOME (I have a folder C:\Hadoop\hadoop-2.8.1\bin with the binaries inside the 'bin')
  • Run zeppelin.cmd
  • Connect to localhost:8080 from your browser

I was having trouble because the Zeppelin page never mentions that you need to have a HADOOP_HOME and the winutils.exe binary. Relevant Zeppelin JIRA issue in https://issues.apache.org/jira/browse/ZEPPELIN-2438.

The above steps worked for me but I might have missed a couple things, so if anyone tries this and it doesn't work feel free to ask.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!