Package org.apache.spark.storage
Class DefaultTopologyMapper
Object
org.apache.spark.storage.TopologyMapper
org.apache.spark.storage.DefaultTopologyMapper
- All Implemented Interfaces:
- org.apache.spark.internal.Logging
public class DefaultTopologyMapper
extends TopologyMapper
implements org.apache.spark.internal.Logging
A TopologyMapper that assumes all nodes are in the same rack
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.spark.internal.Loggingorg.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionscala.Option<String>getTopologyForHost(String hostname) Gets the topology information given the host nameMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.LogginginitializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
- 
Constructor Details- 
DefaultTopologyMapper
 
- 
- 
Method Details- 
getTopologyForHostDescription copied from class:TopologyMapperGets the topology information given the host name- Specified by:
- getTopologyForHostin class- TopologyMapper
- Parameters:
- hostname- Hostname
- Returns:
- topology information for the given hostname. One can use a 'topology delimiter'
         to make this topology information nested.
         For example : ‘/myrack/myhost’, where ‘/’ is the topology delimiter,
         ‘myrack’ is the topology identifier, and ‘myhost’ is the individual host.
         This function only returns the topology information without the hostname.
         This information can be used when choosing executors for block replication
         to discern executors from a different rack than a candidate executor, for example.
 An implementation can choose to use empty strings or None in case topology info is not available. This would imply that all such executors belong to the same rack. 
 
 
-