1. Initial job has not accepted any resources; check your cluster UI to ensure… 解决方案:1.打开spark的UI界面,http://ip:8080/,查看Alive Workers数量。若为0则表明spark的worker未启动。运行sbin下的。start-all.sh脚本启动 2. 异常控制台不打印 解决方案:将异常日志打印至文件中,在conf下的log4j.properties.template复制为log4j.properties,文件内容修改如下: