package protocol
Type Members
-
abstract
class
BlockTransferMessage extends Encodable
Messages handled by the
ExternalBlockHandler, or by Spark's NettyBlockTransferService.Messages handled by the
ExternalBlockHandler, or by Spark's NettyBlockTransferService.At a high level:
- OpenBlock is logically only handled by the NettyBlockTransferService, but for the capability for old version Spark, we still keep it in external shuffle service. It returns a StreamHandle.
- UploadBlock is only handled by the NettyBlockTransferService.
- RegisterExecutor is only handled by the external shuffle service.
- RemoveBlocks is only handled by the external shuffle service.
- FetchShuffleBlocks is handled by both services for shuffle files. It returns a StreamHandle.
-
class
BlocksRemoved extends BlockTransferMessage
The reply to remove blocks giving back the number of removed blocks.
-
class
ExecutorShuffleInfo extends Encodable
Contains all configuration necessary for locating the shuffle files of an executor.
-
class
FetchShuffleBlocks extends BlockTransferMessage
Request to read a set of blocks.
Request to read a set of blocks. Returns
StreamHandle. -
class
GetLocalDirsForExecutors extends BlockTransferMessage
Request to get the local dirs for the given executors.
-
class
LocalDirsForExecutors extends BlockTransferMessage
The reply to get local dirs giving back the dirs for each of the requested executors.
-
class
OpenBlocks extends BlockTransferMessage
Request to read a set of blocks.
Request to read a set of blocks. Returns
StreamHandle. -
class
RegisterExecutor extends BlockTransferMessage
Initial registration message between an executor and its local shuffle server.
Initial registration message between an executor and its local shuffle server. Returns nothing (empty byte array).
-
class
RemoveBlocks extends BlockTransferMessage
Request to remove a set of blocks.
-
class
StreamHandle extends BlockTransferMessage
Identifier for a fixed number of chunks to read from a stream created by an "open blocks" message.
Identifier for a fixed number of chunks to read from a stream created by an "open blocks" message. This is used by
org.apache.spark.network.shuffle.OneForOneBlockFetcher. -
class
UploadBlock extends BlockTransferMessage
Request to upload a block with a certain StorageLevel.
Request to upload a block with a certain StorageLevel. Returns nothing (empty byte array).
-
class
UploadBlockStream extends BlockTransferMessage
A request to Upload a block, which the destination should receive as a stream.
A request to Upload a block, which the destination should receive as a stream.
The actual block data is not contained here. It will be passed to the StreamCallbackWithID that is returned from RpcHandler.receiveStream()