@LimitedPrivate({"YARN","MAPREDUCE"})
public final class RackResolver
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
init(org.apache.hadoop.conf.Configuration conf) |
|
static org.apache.hadoop.net.Node |
resolve(java.lang.String hostName) |
Utility method for getting a hostname resolved to a node in the
network topology.
|
static java.util.List<org.apache.hadoop.net.Node> |
resolve(java.util.List<java.lang.String> hostNames) |
Utility method for getting a list of hostname resolved to a list of node
in the network topology.
|
static org.apache.hadoop.net.Node |
resolve(org.apache.hadoop.conf.Configuration conf,
java.lang.String hostName) |
Utility method for getting a hostname resolved to a node in the
network topology.
|
static java.util.List<org.apache.hadoop.net.Node> |
resolve(org.apache.hadoop.conf.Configuration conf,
java.util.List<java.lang.String> hostNames) |
Utility method for getting a list of hostname resolved to a list of node
in the network topology.
|
public static void init(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.net.Node resolve(org.apache.hadoop.conf.Configuration conf,
java.lang.String hostName)
conf - configuration.hostName - hostname.Node after resolving the hostnamepublic static java.util.List<org.apache.hadoop.net.Node> resolve(org.apache.hadoop.conf.Configuration conf,
java.util.List<java.lang.String> hostNames)
conf - configuration.hostNames - list of hostName.Node after resolving the hostnamespublic static org.apache.hadoop.net.Node resolve(java.lang.String hostName)
init(Configuration) explicitly.hostName - host name.Node after resolving the hostnamepublic static java.util.List<org.apache.hadoop.net.Node> resolve(java.util.List<java.lang.String> hostNames)
init(Configuration) explicitly.hostNames - list of hostNames.Node after resolving the hostnamesCopyright © 2008–2025 Apache Software Foundation. All rights reserved.