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