Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spar

启动报错提示如图:

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启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spar

解决办法:

在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/spar

Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spar

启动成功:

 Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spar

 

上一篇:Go语言入门(七)goroutine和channel


下一篇:Android开发之自定义TabHost文字及背景(源代码分享)