WARN TaskSchedulerImpl:66 - Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
通常是由于内存不足造成的。
当执行spark-submit时,配置了内存信息
spark-submit --class $prog \
--master $SPARK_MASTER \
--num-executors 1 \
--driver-memory 1g \
--executor-memory 1g \
--executor-cores 1 \
$APP_JAR $P1 $P2
由于单机测试造成的内存不足,所出现的控制台一直在waiting