@InterfaceAudience.Private public class RackManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_RACK |
Constructor and Description |
---|
RackManager(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
String |
getRack(ServerName server)
Get the name of the rack containing a server, according to the DNS to
switch mapping.
|
public static final String UNKNOWN_RACK
public String getRack(ServerName server)
server
- the server for which to get the rack nameCopyright © 2014 The Apache Software Foundation. All rights reserved.