关注 spark技术分享,
撸spark源码 玩spark最佳实践

JobListener

JobListener

Spark subscribes for job completion or failure events (after submitting a job to DAGScheduler) using JobListener trait.

The following are the job listeners used:

  1. JobWaiter waits until DAGScheduler completes a job and passes the results of tasks to a resultHandler function.

  2. ApproximateActionListener…​FIXME

An instance of JobListener is used in the following places:

  • In ActiveJob as a listener to notify if tasks in this job finish or the job fails.

  • In JobSubmitted

JobListener Contract

JobListener is a private[spark] contract with the following two methods:

A JobListener object is notified each time a task succeeds (by taskSucceeded) and when the whole job fails (by jobFailed).

赞(0) 打赏
未经允许不得转载:spark技术分享 » JobListener
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏