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
This commit is contained in:
parent
eded9b6b1f
commit
3b07b3fdc3
|
@ -187,6 +187,7 @@ public class MiniZooKeeperCluster {
|
||||||
clientPortList.add(tentativePort);
|
clientPortList.add(tentativePort);
|
||||||
standaloneServerFactoryList.add(standaloneServerFactory);
|
standaloneServerFactoryList.add(standaloneServerFactory);
|
||||||
zooKeeperServers.add(server);
|
zooKeeperServers.add(server);
|
||||||
|
tentativePort++; //for the next server
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the first one to be active ZK; Others are backups
|
// set the first one to be active ZK; Others are backups
|
||||||
|
|
Loading…
Reference in New Issue