Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
580 views
in Technique[技术] by (71.8m points)

hadoop - Error while configuring Apache Zeppelin on Windows 10

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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 FilesJavajdk1.8.0_162)
  • Create a folder for putting Hadoop stuff (e.g. C:Hadoophadoop-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:Hadoophadoop-2.8.1in 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...