LOGGER.debug("Starting ZooKeeper server on address %s", peerConfig.getClientPortAddress());
cnxnFactory.startup(zkServer);
LOGGER.debug("Started ZooKeeper server");
} catch (Exception e) {
LOGGER.warn(String.format("Failed to start ZooKeeper server, reason : %s", e));
cnxnFactory.shutdown();
throw e;
}
// Register stats provider
this.simplerServer = new SimpleServer(zkServer, cnxnFactory);