Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
1、查看spark-env.sh是否指定了SPARK_MASTER_IP =192.168.1.100(或主机名、localhost) 是IP地址填写spark://IP:7077,主机名的spark://主机名:7077
2、我是用Spark-Submit.sh 提交的,具体见图