Spark Job submitted - Waiting (TaskSchedulerImpl : Initial job not accepted)

后端 未结 2 603
借酒劲吻你
借酒劲吻你 2020-12-06 03:14

API call made to submit the Job. Response states - It is Running

On Cluster UI -

Worker (slave) - worker-20160712083825-172.31.17.189-59433 i

2条回答
  •  攒了一身酷
    2020-12-06 03:23

    You can take a look at my answer in a similar question Apache Spark on Mesos: Initial job has not accepted any resources:

    While most of other answers focuses on resource allocation (cores, memory) on spark slaves, I would like to highlight that firewall could cause exactly the same issue, especially when you are running spark on cloud platforms.

    If you can find spark slaves in the web UI, you have probably opened the standard ports 8080, 8081, 7077, 4040. Nonetheless, when you actually run a job, it uses SPARK_WORKER_PORT, spark.driver.port and spark.blockManager.port which by default are randomly assigned. If your firewall is blocking these ports, the master could not retrieve any job-specific response from slaves and return the error.

    You can run a quick test by opening all the ports and see whether the slave accepts jobs.

提交回复
热议问题