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

ShuffleClient — Contract to Fetch Shuffle Blocks

ShuffleClient — Contract to Fetch Shuffle Blocks

ShuffleClient is the contract of clients that can fetch shuffle block files.

ShuffleClient can optionally be initialized with an appId (that actually does nothing by default)

ShuffleClient has shuffle-related Spark metrics that are used when BlockManager is requested for a shuffle-related Spark metrics source (only when Executor is created for a non-local / cluster mode).

Table 1. (Subset of) ShuffleClient Contract
Method Description

fetchBlocks

Fetches a sequence of blocks from a remote block manager node asynchronously

Used exclusively when ShuffleBlockFetcherIterator is requested to sendRequest

Table 2. ShuffleClients
ShuffleClient Description

BlockTransferService

ExternalShuffleClient

init Method

init does nothing by default.

Note

init is used when:

  • BlockManager is requested to initialize

  • Spark on Mesos’ MesosCoarseGrainedSchedulerBackend is requested to registered

shuffleMetrics returns an empty Dropwizard Metrics’ MetricSet by default.

Note
shuffleMetrics is used exclusively when BlockManager is requested for a shuffle-related Spark metrics source (only when Executor is created for a non-local / cluster mode).
赞(0) 打赏
未经允许不得转载:spark技术分享 » ShuffleClient — Contract to Fetch Shuffle Blocks
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏