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

ResultStage — Final Stage in Job

ResultStage — Final Stage in Job

A ResultStage is the final stage in a job that applies a function on one or many partitions of the target RDD to compute the result of an action.

dagscheduler job resultstage.png
Figure 1. Job creates ResultStage as the first stage

The partitions are given as a collection of partition ids (partitions) and the function func: (TaskContext, Iterator[_]) ⇒ _.

dagscheduler resultstage partitions.png
Figure 2. ResultStage and partitions
Tip
Read about TaskContext in TaskContext.

func Property

Caution
FIXME

setActiveJob Method

Caution
FIXME

removeActiveJob Method

Caution
FIXME

activeJob Method

activeJob returns the optional ActiveJob associated with a ResultStage.

Caution
FIXME When/why would that be NONE (empty)?
赞(0) 打赏
未经允许不得转载:spark技术分享 » ResultStage — Final Stage in Job
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏