org.apache.hadoop.hbase.master
Class RackManager
java.lang.Object
org.apache.hadoop.hbase.master.RackManager
@InterfaceAudience.Private
public class RackManager
- extends Object
Wrapper over the rack resolution utility in Hadoop. The rack resolution
utility in Hadoop does resolution from hosts to the racks they belong to.
Constructor Summary |
RackManager(org.apache.hadoop.conf.Configuration conf)
|
Method Summary |
String |
getRack(ServerName server)
Get the name of the rack containing a server, according to the DNS to
switch mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_RACK
public static final String UNKNOWN_RACK
- See Also:
- Constant Field Values
RackManager
public RackManager(org.apache.hadoop.conf.Configuration conf)
getRack
public String getRack(ServerName server)
- Get the name of the rack containing a server, according to the DNS to
switch mapping.
- Parameters:
server
- the server for which to get the rack name
- Returns:
- the rack name of the server
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.