Apache Curator in 5 Minutes

First you should build the CuratorFramework instance as follows. Here, the connectStringmeans a comma separated list of ip and port combinations of the zookeeper servers in your ensemble. CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder() .connectString(connectString) .retryPolicy(new ExponentialBackoffRetry(retryInitialWaitMs, maxRetryCount)) .connectionTimeoutMs(connectionTimeoutMs) .sessionTimeoutMs(sessionTimeoutMs); /* * If authorization information is available, those will be added to the client. NOTE: These auth... Continue Reading →


Powered by WordPress.com.

Up ↑

%d bloggers like this: