spark-shell系统找不到指定的路径 [英] spark-shell The system cannot find the path specified
问题描述
我正在尝试在Windows 7的cmd提示符下运行spark-shell命令.我已经安装了hadoop并将其保存在C:\ winutils \ hadoop-common-2.2.0-bin-master \ bin和C下的Spark :\ Spark \ spark-2.2.1-bin-hadoop2.7 \ bin.
I am trying to run spark-shell command on cmd prompt on Windows 7. I have installed hadoop and have kept it under C:\winutils\hadoop-common-2.2.0-bin-master\bin and Spark under C:\Spark\spark-2.2.1-bin-hadoop2.7\bin.
在执行spark-shell时,出现以下错误.
While executing spark-shell, i am getting following error.
C:\ Spark \ spark-2.2.1-bin-hadoop2.7 \ bin> spark-shell 系统找不到指定的路径.
C:\Spark\spark-2.2.1-bin-hadoop2.7\bin>spark-shell The system cannot find the path specified.
下面是我的环境变量
HADOOP_HOME C:\winutils
JAVA_HOME C:\Program Files\IBM\Java80\jre
PATH C:\Users\IBM_ADMIN\AppData\Local\Programs\Python\Python36-32;C:\IBM\InformationServer\Clients\Classic;C:\Program Files\IBM\Java80\jre;C:\Windows\system32
SCALA_HOME C:\Program Files (x86)\scala\
屏幕截图
推荐答案
您的JAVA_HOME设置为JRE,请确保将其指向JDK文件夹(它应位于JRE旁边)
Your JAVA_HOME is set to JRE, please make sure you point it to your JDK folder (it should be located next to your the JRE)
这篇关于spark-shell系统找不到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!