What happens when Spark master fails?

前端 未结 3 1973
情歌与酒
情歌与酒 2020-12-15 23:26

Does the driver need constant access to the master node? Or is it only required to get initial resource allocation? What happens if master is not available after Spark cont

3条回答
  •  清酒与你
    2020-12-16 00:03

    Yes, the driver and master communicate constantly throughout the SparkContext's lifetime. That allows driver to:

    • Display detailed status of jobs / stages / tasks on its Web Interface and REST API
    • Listen on job start and end events (you can add your own listeners)
    • Wait for jobs to end (via synchronous API - e.g. rdd.count() won't terminate until job is completed) and get their result

    A disconnect between driver and master will fail the job.

提交回复
热议问题