HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@652428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9cd46728ff
commit
0c08836299
|
@ -25,6 +25,8 @@ Hbase Change Log
|
|||
knows about workings of memcache
|
||||
HBASE-588 Still a 'hole' in scanners, even after HBASE-532
|
||||
HBASE-604 Don't allow CLASSPATH from environment pollute the hbase CLASSPATH
|
||||
HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name
|
||||
(Jim R. Wilson via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-559 MR example job to count table rows
|
||||
|
|
|
@ -57,6 +57,15 @@
|
|||
<description>The host and port a HBase region server runs at.
|
||||
</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>hbase.regionserver.dns.interface</name>
|
||||
<value>default</value>
|
||||
<description>Name of the network interface which a regionserver
|
||||
should use to determine it's "real" IP address. This lookup
|
||||
prevents strings like "localhost" and "127.0.0.1" from being
|
||||
reported back to the master.
|
||||
</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>hbase.regionserver.info.port</name>
|
||||
<value>60030</value>
|
||||
|
|
|
@ -607,7 +607,7 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
|
|||
* @return This servers' IP.
|
||||
*/
|
||||
private String getThisIP() throws UnknownHostException {
|
||||
return DNS.getDefaultIP(conf.get("dfs.datanode.dns.interface","default"));
|
||||
return DNS.getDefaultIP(conf.get("hbase.regionserver.dns.interface","default"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue