在Windows 10上配置Apache Zeppelin时出错 [英] Error while configuring Apache Zeppelin on Windows 10

查看:1964
本文介绍了在Windows 10上配置Apache Zeppelin时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试在Windows 10上安装和配置Apache Zeppelin时出现以下错误:

  org.apache.zeppelin。 interpreter.InterpreterException:文件名,
目录名称或卷标语法不正确
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)
在org.apache.zeppelin.scheduler.Job.run(Job.java:175)
在org.apache.zeppelin。 scheduler.RemoteScheduler $ JobRunner.run (RemoteScheduler.java:329)
在java.util.concurrent.Executors $ RunnableAdapter.call(未知源)
在java.util.concurrent.FutureTask.run(未知源)
at $ java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(Unknown Source) (未知源)
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知源)$ b $在java.lang.Thread.run(未知源)

我遵循以下步骤:

1.将文件夹下载并提取到某个位置。

2。下载Java并设置JAVA_HOME

3.下载hadoop并设置HADOOP_HOME

4.从bin文件夹中运行zeppelin.cmd

5.在浏览器中打开zeppelin,运行示例代码。

解决方案

我花了整整一天的时间试图让Zeppelin在Windows 10上工作,所以我知道痛苦。我将概述我采取的步骤,以便您可以看到您的问题:



我的环境:带有最新更新的Windows 10。没有安装Spark或Hadoop。 Java 8。




  • https://zeppelin.apache.org/download.html 并将它解压到你喜欢的地方(我的Zeppelin 0.7.3与所有解释器一起)

  • 确保你已经安装了java jdk,并且你已经正确地设置了JAVA_HOME(我的设置为C:\ Program Files \Java\jdk1.8.0_162)

  • 创建一个(例如C:\ Hadoop \ hadoop-2.8.1)
  • 将HADOOP_HOME环境变量设置为上述文件夹

  • 获取Windows的Hadoop二进制文件。这些可以从 https://github.com/steveloughran/winutils 获取。将它们解压缩到HADOOP_HOME中的'bin'文件夹中(我有一个文件夹C:\ Hadoop \ hadoop-2.8.1\bin,里面有bin文件)

  • 运行zeppelin.cmd

  • 从浏览器连接到localhost:8080



麻烦,因为Zeppelin页面从来没有提到你需要有一个HADOOP_HOME和winutils.exe二进制文件。 https://issues.apache.org/jira/browse/ZEPPELIN中的相关Zeppelin JIRA问题-2438

上述步骤适用于我,但我可能错过了几件事情,所以如果有人尝试这种方式,它不起作用问。

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.

解决方案

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.

这篇关于在Windows 10上配置Apache Zeppelin时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆