系统找不到spark-shell中指定的路径 [英] system cannot find the path specified in spark-shell

查看:518
本文介绍了系统找不到spark-shell中指定的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Win7中安装Spark,但出现错误.

I am trying to install Spark in Win7 and am getting an error.

这些是我的环境设置:

SPARK_HOME : C:\spark(这是我解压缩spark文件的位置)

SPARK_HOME : C:\spark (this is where I have unzipped the spark files)

JAVA_HOME:C:\ Program Files \ Java \ jdk1.7.0_71;

JAVA_HOME : C:\Program Files\Java\jdk1.7.0_71;

SCALA_HOME: C:\Program Files (x86)\scala

PATH:C:\ Program Files \ Java \ jdk1.7.0_71 \ bin; C:\ app \ Sampad \ product \ 11.2.0 \ dbhome_1 \ bin; C:\ Python27; C:\ Program Files \ Python27 \ ; C:\ Program Files \ Python27 \ Scripts; C:\ Program Files(x86)\ Intel \ iCLS Client \; C:\ Program Files \ Intel \ iCLS Client \; C:\ Program Files(x86)\ NVIDIA Corporation \ PhysX \ Common;%SystemRoot%\ system32;%SystemRoot%;%SystemRoot%\ System32 \ Wbem;%SYSTEMROOT%\ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ Intel \ Intel(R)管理引擎组件\ DAL; C:\ Program Files \ Intel \ Intel(R)管理引擎组件\ IPT; C:\ Program Files(x86)\ Intel \ Intel(R)Management Engine Components \ DAL; C:\ Program Files(x86) \ Intel \ Intel(R)管理引擎组件\ IPT; C:\ Program Files \ Java \ jdk1.6.0_45 \ bin; C:\ Program Files \ nodejs \; C:\ Program Files \ Python27; C:\ Anaconda; C:\ Anaconda \ Scripts; C:\ HashiCorp \ Vagrant \ bin; C:\ Program Files(x86)\ scala \ bin; C:\ spark \ bin;

PATH : C:\Program Files\Java\jdk1.7.0_71\bin;C:\app\Sampad\product\11.2.0\dbhome_1\bin;C:\Python27;C:\Program Files\Python27\;C:\Program Files\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\nodejs\;C:\Program Files\Python27;C:\Anaconda;C:\Anaconda\Scripts;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\scala\bin;C:\spark\bin;

HADOOP_HOME : C:\winutils; (set this after reading this blog

请让我知道我犯了什么错误.预先感谢.

Please let me know what mistake I have made. Thanks in advance.

推荐答案

尝试从

@echo off

rem @echo off

对我来说,它表明我正尝试从c:\ spark \ bin \ bin的下一行加载文件

For me it showed me that it was trying to load a file from c:\spark\bin\bin on the following line

"%SPARK_HOME%\bin\spark-submit2.cmd" --class org.apache.spark.repl.Main --name "Spark shell" %*

在我的环境中,%SPARK_HOME%设置为c:\ spark \ bin.我的安装位于c:\ spark \ bin

In my env %SPARK_HOME% was set to c:\spark\bin. My installation is at c:\spark\bin

因此,我将%SPARK_HOME%设置为c:\ Spark,并将%SPARK_HOME%\ bin添加到了我的PATH.

So I set the %SPARK_HOME% to c:\Spark and added %SPARK_HOME%\bin to my PATH.

这篇关于系统找不到spark-shell中指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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