spark-submit:未找到命令

在执行过程中出现错误

hadoop@Master:~/sparkapp$ spark-submit --class "hw10_1_CountLine" /usr/local/spark/sparkapp/target/scala-2.11/simple-project_2.11-1.0.jar 
spark-submit:未找到命令

得去bin的目录里面找

hadoop@Master:~/sparkapp$ /usr/local/spark/bin/spark-submit --class "HW10_1_CountLine" /home/hadoop/sparkapp/target/scala-2.11/simple-project_2.11-1.0.jar 2>&1 | grep "The num of this file is "

就能得出结果

The num of this file is 5

你可能感兴趣的:(报错,Spark,spark,大数据)