org.apache.hadoop.yarn.util
Class RackResolver
java.lang.Object
org.apache.hadoop.yarn.util.RackResolver
@InterfaceAudience.LimitedPrivate(value={"YARN","MAPREDUCE"})
public class RackResolver- extends Object
|
Method Summary |
static void |
init(org.apache.hadoop.conf.Configuration conf)
|
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 org.apache.hadoop.net.Node |
resolve(String hostName)
Utility method for getting a hostname resolved to a node in the
network topology. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RackResolver
public RackResolver()
init
public static void init(org.apache.hadoop.conf.Configuration conf)
resolve
public 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. This method initializes the class with the
right resolver implementation.
- Parameters:
conf - hostName -
- Returns:
- node
Node after resolving the hostname
resolve
public static org.apache.hadoop.net.Node resolve(String hostName)
- Utility method for getting a hostname resolved to a node in the
network topology. This method doesn't initialize the class.
Call
init(Configuration) explicitly.
- Parameters:
hostName -
- Returns:
- node
Node after resolving the hostname
Copyright © 2014 Apache Software Foundation. All Rights Reserved.