码迷,mamicode.com
首页 > Web开发 > 详细

Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spark-class org.apache.spark.deploy.worker.Worker --webui-port 8081 spark://Hadoop:7077

时间:2020-03-18 20:21:37      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:http   inf   com   org   deploy   pac   UNC   如图所示   ice   

启动报错提示如图:

localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spark-class org.apache.spark.deploy.worker.Worker --webui-port 8081 spark://Hadoop:7077
localhost: JAVA_HOME is not set
localhost: full log in /home/chan/spark/spark-2.4.3-bin-hadoop2.7/logs/spark-chan-org.apache.spark.deploy.worker.Worker-1-hadoop.out

意思是说work启动失败,没有找到java。

技术图片

解决办法:

在spark安装目录中sbin下的spark-config.sh中添加JAVA_HOME=jdk地址,具体操作如图所示

技术图片

技术图片

启动成功:

 技术图片

 

Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spark-class org.apache.spark.deploy.worker.Worker --webui-port 8081 spark://Hadoop:7077

标签:http   inf   com   org   deploy   pac   UNC   如图所示   ice   

原文地址:https://www.cnblogs.com/litstar/p/12519696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!