From 3b07b3fdc3baa5188ff44199afb70fdeb7d93404 Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Thu, 8 Nov 2012 22:07:37 +0000 Subject: [PATCH] HBASE-6822. [WINDOWS] MiniZookeeperCluster multiple daemons bind to the same port git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1407286 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java index 3ae29d7fac4..37e1681a81b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java @@ -187,6 +187,7 @@ public class MiniZooKeeperCluster { clientPortList.add(tentativePort); standaloneServerFactoryList.add(standaloneServerFactory); zooKeeperServers.add(server); + tentativePort++; //for the next server } // set the first one to be active ZK; Others are backups