spark-submit给出错误,因为系统无法找到指定的路径

时间:2016-08-28 11:35:05

标签: apache-spark

发生错误的命令

D:\eclipse_scala\WordCount>spark-submit --class "main.scala.WordCounter" --master "local[*]" "D:\eclipse_scala\WordCount\target\scala-2.11\word-count_2.11-0.1.j
ar"

错误

  

系统找不到指定的路径。

我在scala编写了简单的wordcount程序,并使用sbt编译。 spark的版本 - spark-core_2.11-2.0.0.jar

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

Path=E:\software\apache-maven-3.3.3\bin;C:\Users\xxxxxxx\hadoop\bin;C:\Program F
iles\Java\jdk1.7.0_71\bin;C:\Program Files\Common Files\Microsoft Shared\Windows
 Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\oracl
exe\app\oracle\product\10.2.0\server\bin;C:\Program Files\Dell\DW WLAN Card;C:
\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Window
sPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\
WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;E
:\software\spark\spark-2.0.0-bin-hadoop2.7\bin;C:\Program Files (x86)\scala\bin;
C:\Program Files (x86)\sbt\\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

1 个答案:

答案 0 :(得分:3)

尝试没有双引号 spark-submit --class main.scala.WordCounter --master 本地[*] D:/eclipse_scala/WordCount/target/scala-2.11/word-count_2.11-0.1.jar