You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by to...@apache.org on 2011/06/14 03:56:34 UTC

svn commit: r1135357 - in /hbase/branches/0.90: CHANGES.txt src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java

Author: todd
Date: Tue Jun 14 01:56:34 2011
New Revision: 1135357

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

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

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1135357&r1=1135356&r2=1135357&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Tue Jun 14 01:56:34 2011
@@ -29,6 +29,8 @@ Release 0.90.4 - Unreleased
    HBASE-3892  Table can't disable (Gao Jinchao)
    HBASE-3894  Thread contention over row locks set monitor (Dave Latham)
    HBASE-3794  Ability to Discard Bad HTable Puts
+   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/branches/0.90/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=1135357&r1=1135356&r2=1135357&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Tue Jun 14 01:56:34 2011
@@ -899,7 +899,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));