Skip to content

Commit

Permalink
HBASE-27420 Allow non-loopback for zk standalone server in minizkclus…
Browse files Browse the repository at this point in the history
…ter (apache#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>
(cherry picked from commit 00f72f3)
Change-Id: I25f25c6f38796ab207608f35587bd1637f23ef1a
  • Loading branch information
2 people authored and apurtell committed Oct 29, 2022
1 parent 59ac221 commit 43f8c76
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ public int startup(File baseDir, int numZooKeeperServers)
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) {
Expand Down

0 comments on commit 43f8c76

Please sign in to comment.