HBASE-3916. Fix the default bind address of ThriftServer to be wildcard instead of localhost. Contributed by Li Pi

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1135358 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-06-14 01:56:41 +00:00
parent 76a743e8f0
commit 4c5264d4b3
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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));