abstract class TopologyMapper extends AnyRef
::DeveloperApi:: TopologyMapper provides topology information for a given host
- Annotations
- @DeveloperApi()
- Source
- TopologyMapper.scala
- Alphabetic
- By Inheritance
- TopologyMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Abstract Value Members
-
abstract
def
getTopologyForHost(hostname: String): Option[String]
Gets the topology information given the host name
Gets the topology information given the host name
- 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.