Class ZooKeeperInitialization


  • public class ZooKeeperInitialization
    extends Object
    We don't want to introduce an upgrade path to 1.7 only for some new nodes within ZooKeeper

    We can take the penalty of embedding this logic into the server processes, but alleviate users/developers from having to worry about the zookeeper state.

    • Constructor Detail

      • ZooKeeperInitialization

        public ZooKeeperInitialization()
    • Method Detail

      • ensureZooKeeperInitialized

        public static void ensureZooKeeperInitialized​(ZooReaderWriter zooReaderWriter,
                                                      String zRoot)
                                               throws org.apache.zookeeper.KeeperException,
                                                      InterruptedException
        Ensure that the full path to ZooKeeper nodes that will be used exist
        Throws:
        org.apache.zookeeper.KeeperException
        InterruptedException