Author: todd
Date: Tue Jun 14 01:56:41 2011
New Revision: 1135358

URL: http://svn.apache.org/viewvc?rev=1135358&view=rev
Log:
HBASE-3916. Fix the default bind address of ThriftServer to be wildcard instead 
of localhost. Contributed by Li Pi

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java

Modified: hbase/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1135358&r1=1135357&r2=1135358&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Tue Jun 14 01:56:41 2011
@@ -321,6 +321,8 @@ Release 0.90.4 - Unreleased
                (Ted Yu)
    HBASE-3946  The splitted region can be online again while the standby
                hmaster becomes the active one (Jieshan Bean)
+   HBASE-3916  Fix the default bind address of ThriftServer to be wildcard
+               instead of localhost. (Li Pi)
 
   IMPROVEMENT
    HBASE-3882  hbase-config.sh needs to be updated so it can auto-detects the

Modified: 
hbase/trunk/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
URL: 
http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=1135358&r1=1135357&r2=1135358&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java 
(original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java 
Tue Jun 14 01:56:41 2011
@@ -1005,7 +1005,7 @@ public class ThriftServer {
           printUsageAndExit(options, -1);
         }
       } else {
-        listenAddress = InetAddress.getLocalHost();
+        listenAddress = InetAddress.getByName("0.0.0.0");
       }
       TServerTransport serverTransport = new TServerSocket(new 
InetSocketAddress(listenAddress, listenPort));
 


Reply via email to