解决方法:
在sbin目录spark-config.sh 中添加自己的jdk 路径export JAVA_HOME=/home/hadoop/modules/jdk
启动:
sbin/start-all.sh