在Windows 10上配置Apache Zeppelin时出错

编程入门 行业动态 更新时间:2024-10-27 12:28:24
本文介绍了在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。

  • 从 zeppelin.apache/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二进制文件。这些可以从 github/steveloughran/winutils 获取。将它们解压缩到HADOOP_HOME中的'bin'文件夹中(我有一个文件夹C:\ Hadoop \ hadoop-2.8.1\bin,里面有bin文件)
  • 运行zeppelin.cmd
  • 从浏览器连接到localhost:8080

麻烦,因为Zeppelin页面从来没有提到你需要有一个HADOOP_HOME和winutils.exe二进制文件。 issues.apache/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 zeppelin.apache/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 github/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 issues.apache/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时出错

本文发布于:2023-11-24 11:32:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625032.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows   Zeppelin   Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!