@InterfaceAudience.LimitedPrivate(value={"YARN","MAPREDUCE"}) public class RackResolver extends Object
Constructor and Description |
---|
RackResolver() |
Modifier and Type | Method and Description |
---|---|
static void |
init(Configuration conf) |
static Node |
resolve(Configuration conf,
String hostName)
Utility method for getting a hostname resolved to a node in the
network topology.
|
static Node |
resolve(String hostName)
Utility method for getting a hostname resolved to a node in the
network topology.
|
public static void init(Configuration conf)
public static Node resolve(Configuration conf, String hostName)
conf
- hostName
- Node
after resolving the hostnamepublic static Node resolve(String hostName)
init(Configuration)
explicitly.hostName
- Node
after resolving the hostnameCopyright © 2013 Apache Software Foundation. All rights reserved.