Details
Description
setReuseAddress(true) should be used below.
Leader(QuorumPeer self,LeaderZooKeeperServer zk) throws IOException {
this.self = self;
try
catch (BindException e)
{ LOG.error("Couldn't bind to port " + self.getQuorumAddress().getPort(), e); throw e; } this.zk=zk;
}