diff --git src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java index 786ae21..9b78235 100644 --- src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java +++ src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java @@ -184,6 +184,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