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

MapOutputTrackerMasterEndpoint

MapOutputTrackerMasterEndpoint

MapOutputTrackerMasterEndpoint is a RpcEndpoint for MapOutputTrackerMaster.

MapOutputTrackerMasterEndpoint handles the following messages:

Tip

Enable INFO or DEBUG logging levels for org.apache.spark.MapOutputTrackerMasterEndpoint logger to see what happens in MapOutputTrackerMasterEndpoint.

Add the following line to conf/log4j.properties:

Refer to Logging.

Creating MapOutputTrackerMasterEndpoint Instance

MapOutputTrackerMasterEndpoint takes the following when created:

  1. rpcEnv — RpcEnv

  2. tracker — MapOutputTrackerMaster

  3. conf — SparkConf

When created, you should see the following DEBUG message in the logs:

Note
MapOutputTrackerMasterEndpoint is created when SparkEnv is created for the driver and executors.

GetMapOutputStatuses Message

When GetMapOutputStatuses arrives, MapOutputTrackerMasterEndpoint reads the host and the port of the sender.

You should see the following INFO message in the logs:

MapOutputTrackerMasterEndpoint posts a GetMapOutputMessage to MapOutputTrackerMaster (with shuffleId and the current RpcCallContext).

Note
GetMapOutputStatuses is posted when MapOutputTracker fetches shuffle map outputs remotely.

StopMapOutputTracker Message

When StopMapOutputTracker arrives, you should see the following INFO message in the logs:

MapOutputTrackerMasterEndpoint confirms the request (by replying true) and stops itself (and stops accepting messages).

Note
StopMapOutputTracker is posted when MapOutputTrackerMaster stops.
赞(0) 打赏
未经允许不得转载:spark技术分享 » MapOutputTrackerMasterEndpoint
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏