public class FileBasedTopologyMapper extends TopologyMapper implements Logging
java.util.Properties
file. The name of the file is obtained from SparkConf property
spark.storage.replication.topologyFile
. To use this topology mapper, set the
spark.storage.replication.topologyMapper
property to
FileBasedTopologyMapper
param: conf SparkConf objectConstructor and Description |
---|
FileBasedTopologyMapper(SparkConf conf) |
Modifier and Type | Method and Description |
---|---|
scala.Option<String> |
getTopologyForHost(String hostname)
Gets the topology information given the host name
|
scala.Option<String> |
topologyFile() |
scala.collection.Map<String,String> |
topologyMap() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public FileBasedTopologyMapper(SparkConf conf)
public scala.Option<String> getTopologyForHost(String hostname)
TopologyMapper
getTopologyForHost
in class TopologyMapper
hostname
- HostnameAn 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.
public scala.Option<String> topologyFile()
public scala.collection.Map<String,String> topologyMap()