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 (#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>
  • Loading branch information
2 people authored and apurtell committed Oct 11, 2022
1 parent 4ec7ee5 commit 00f72f3
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 00f72f3

Please sign in to comment.