HBASE-27420 Allow non-loopback for zk standalone server in minizkcluster (#4819)
Signed-off-by: Andrew Purtell <apurtell@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Co-authored-by: Sanjeet Malhotra <sanjeetmalhotra@salesforce.com>
This commit is contained in:
parent
4ec7ee5cb1
commit
00f72f346f
|
@ -234,7 +234,9 @@ public class MiniZooKeeperCluster {
|
|||
while (true) {
|
||||
try {
|
||||
standaloneServerFactory = new NIOServerCnxnFactory();
|
||||
standaloneServerFactory.configure(new InetSocketAddress(LOOPBACK_HOST, currentClientPort),
|
||||
String bindAddr =
|
||||
configuration.get("hbase.zookeeper.property.clientPortAddress", LOOPBACK_HOST);
|
||||
standaloneServerFactory.configure(new InetSocketAddress(bindAddr, currentClientPort),
|
||||
configuration.getInt(HConstants.ZOOKEEPER_MAX_CLIENT_CNXNS,
|
||||
HConstants.DEFAULT_ZOOKEEPER_MAX_CLIENT_CNXNS));
|
||||
} catch (BindException e) {
|
||||
|
|
Loading…
Reference in New Issue