Apache Spark on Mesos: Initial job has not accepted any resources

前端 未结 1 2017
星月不相逢
星月不相逢 2020-12-03 20:01

I am running Apache Spark on cluster mode using Apache Mesos. But, when I start Spark-Shell to run a simple test command (sc.parallelize(0 to 10, 8).count) I receive the fol

相关标签:
1条回答
  • 2020-12-03 20:44

    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.

    0 讨论(0)
提交回复
热议问题