天道不一定酬所有勤
但是,天道只酬勤

spark启动:hadoop01: JAVA_HOME is not set

报错:

1.hadoop01: failed to launch: nice -n 0

2.hadoop01: JAVA_HOME is not set

解决办法:

修改:spark-env.sh,添加

export JAVA_HOME=/home/soft/jdk1.8.0_333
export SPARK_MASTER_IP=hadoop01
export SPARK_MASTER_PORT=7077

然后重启:

未经允许不得转载:java技术小栈 » spark启动:hadoop01: JAVA_HOME is not set
分享到

评论 抢沙发