Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ private[spark] trait ShuffleManager {
*/
def shuffleBlockResolver: ShuffleBlockResolver

/**
* The flag to indicate if the shuffle manager needs to work with a local external
* shuffle service, by default it returns true; if it doesn't work with a local external
* shuffle service, this function needs to be overridden and return false instead.
* @return true if this shuffle manager needs to work with a local external shuffle service,
* otherwise false.
*/
def supportExternalShuffleService: Boolean = true

/** Shut down this ShuffleManager. */
def stop(): Unit
}
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ private[spark] class BlockManager(
}

// Register Executors' configuration with the local shuffle service, if one should exist.
if (externalShuffleServiceEnabled && !blockManagerId.isDriver) {
if (externalShuffleServiceEnabled && !blockManagerId.isDriver
&& shuffleManager.supportExternalShuffleService) {
registerWithExternalShuffleServer()
}

Expand Down