hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r652427 - in /hadoop/hbase/branches/0.1: CHANGES.txt conf/hbase-default.xml src/java/org/apache/hadoop/hbase/HRegionServer.java
Date Thu, 01 May 2008 04:20:53 GMT
Author: stack
Date: Wed Apr 30 21:20:53 2008
New Revision: 652427

URL: http://svn.apache.org/viewvc?rev=652427&view=rev
Log:
HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name

Modified:
    hadoop/hbase/branches/0.1/CHANGES.txt
    hadoop/hbase/branches/0.1/conf/hbase-default.xml
    hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java

Modified: hadoop/hbase/branches/0.1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/CHANGES.txt?rev=652427&r1=652426&r2=652427&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.1/CHANGES.txt Wed Apr 30 21:20:53 2008
@@ -25,6 +25,8 @@
    HBASE-572   Backport HBASE-512 to 0.1 branch
    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

Modified: hadoop/hbase/branches/0.1/conf/hbase-default.xml
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/conf/hbase-default.xml?rev=652427&r1=652426&r2=652427&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/conf/hbase-default.xml (original)
+++ hadoop/hbase/branches/0.1/conf/hbase-default.xml Wed Apr 30 21:20:53 2008
@@ -57,6 +57,15 @@
     </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>
     <description>The port for the hbase regionserver web UI

Modified: hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java?rev=652427&r1=652426&r2=652427&view=diff
==============================================================================
--- hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java (original)
+++ hadoop/hbase/branches/0.1/src/java/org/apache/hadoop/hbase/HRegionServer.java Wed Apr
30 21:20:53 2008
@@ -1042,7 +1042,7 @@
    * @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"));
   }
 
   /**



Mime
View raw message