日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Neither spark.yarn.jars nor spark.yarn.archive is set

發布時間:2023/12/31 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Neither spark.yarn.jars nor spark.yarn.archive is set 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

完整報錯如下:

(Python3.6) appleyuchi@Desktop:target$ spark-submit --class WordCountLocal --master yarn --deploy-mode cluster ?--driver-memory 1g --executor-memory 1g --executor-cores 1 ?/home/appleyuchi/IdeaProjects/scala-learn/target/scala-learn-1.0-SNAPSHOT.jar
20/04/26 18:12:33 WARN Client: Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME.
?

?

解決方案:
(Python3.6) appleyuchi@Desktop:~$ hdfs dfs -mkdir /spark
(Python3.6) appleyuchi@Desktop:~$ hdfs dfs -mkdir /spark/jars
(Python3.6) appleyuchi@Desktop:~$ hdfs?dfs -put ?$SPARK_HOME/jars/* hdfs://Desktop:9000/spark/jars/

?

上傳后查看:
hdfs dfs -ls hdfs://Desktop:9000/spark/jars

?

spark-defaults.conf中寫入

spark.yarn.jars hdfs://Desktop:9000/spark/jars

?

再次提交任務:

spark-submit --class WordCountLocal --master yarn --deploy-mode cluster ?--driver-memory 1g --executor-memory 1g --executor-cores 1 ?/home/appleyuchi/IdeaProjects/scala-learn/target/scala-learn-1.0-SNAPSHOT.jar

總結

以上是生活随笔為你收集整理的Neither spark.yarn.jars nor spark.yarn.archive is set的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。