大佬们好,我遇到了一个问题,像下面这样,我先随便拿了一段代码,复制进去,下面这段代码有换行符
bin/spark-submit \
--class org.apache.spark.examples.SparkPi \
--master yarn \
--deploy-mode client \
./examples/jars/spark-examples_2.11-2.4.5.jar \
100
复制到
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]
然后点粘贴,可是没有按enter键,奇怪的是代码自动执行了一段
执行结果显示是这样的:
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]# bin/spark-submit \
Exception in thread "main" org.apache.spark.SparkException: Cannot load main class from JAR file:/opt/module/spark/%20
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]# --class org.apache.spark.examples.SparkPi \
-bash: --class: 未找到命令
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]# --master yarn \
-bash: --master: 未找到命令
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]# --deploy-mode client \
-bash: --deploy-mode: 未找到命令
[root@WSWS1 spark-2.4.5-bin-hadoop2.7]# ./examples/jars/spark-examples_2.11-2.4.5.jar \
-bash: ./examples/jars/spark-examples_2.11-2.4.5.jar: 权限不够
检查了好久没发现问题,然后我一行一行复制进去是可以正常执行这段代码的。大佬们帮我看一下可能是什么原因,一行一行复制太浪费时间了。
来源:CSDN
作者:大金莲子
链接:https://blog.csdn.net/weixin_43460989/article/details/104651170