请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

spark-submit yarn报错

[hadoop@hadoop000 bin]$ ./spark-submit \

–class com.imooc.bigdata.chapter01.SparkWordCountAppV2
–master yarn \
–name SparkWordCountAppV2
/home/hadoop/lib/sparksql-train-1.0.jar
hdfs://hadoop000:8020/meng/wc.data hdfs://hadoop000:8020/meng/out20/08/22 06:51:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable

20/08/22 06:51:42 WARN deploy.DependencyUtils: Local jar /home/hadoop/app/spark-2.4.6-bin-hadoop2.6/bin/ does not exist, skipping.
20/08/22 06:51:42 WARN deploy.SparkSubmitKaTeX parse error: $ within math moderunMain(SparkSubmit.scala:806)
at org.apache.spark.deploy.SparkSubmit.doRunMain1(SparkSubmit.scala:161)atorg.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)atorg.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)atorg.apache.spark.deploy.SparkSubmit1(SparkSubmit.scala:161) at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184) at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86) at org.apache.spark.deploy.SparkSubmit1(SparkSubmit.scala:161)atorg.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)atorg.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)atorg.apache.spark.deploy.SparkSubmit$anon2.doSubmit(SparkSubmit.scala:920)atorg.apache.spark.deploy.SparkSubmit2.doSubmit(SparkSubmit.scala:920) at org.apache.spark.deploy.SparkSubmit2.doSubmit(SparkSubmit.scala:920)atorg.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala:929)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
20/08/22 06:51:42 INFO util.ShutdownHookManager: Shutdown hook called
20/08/22 06:51:42 INFO util.ShutdownHookManager: Deleting directory /tmp/spark-497fb498-88bf-48d1-a44e-a631d1f43e3f

老师我这个是哪地方弄错了,研究了好久也没找到问题。

正在回答 回答被采纳积分+3

1回答

Michael_PK 2020-08-21 23:42:06

–class com.imooc.bigdata.chapter01.SparkWordCountAppV2
–master yarn \
–name SparkWordCountAppV2
/home/hadoop/lib/sparksql-train-1.0.jar


这些换行的都需要斜杠的,你看你写的脚本,一会有一会没有

0 回复 有任何疑惑可以回复我~
  • 提问者 慕九州3016327 #1
    老师刚刚我检查了一下,yarn /后面多了一个空格,应该是这个的问题。
    回复 有任何疑惑可以回复我~ 2020-08-22 08:06:48
  • Michael_PK 回复 提问者 慕九州3016327 #2
    只要是一行内就不用斜杠,只要多行就需要
    回复 有任何疑惑可以回复我~ 2020-08-22 10:20:23
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信