Registry / networking / curator-framework

curator-framework

JSON →
library5.9.0javamavenunverified

High-level API that greatly simplifies using ZooKeeper, providing recipes for distributed coordination.

<dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-framework</artifactId> <version>5.9.0</version> </dependency>
INSTALL
IMPORT
SIG · CURATOR-FRAMEWORK
C
curator-framework
networkingjavav5.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CuratorFrameworkFactory
org.apache.curator.framework.CuratorFrameworkFactory

Create and start a Curator ZooKeeper client

import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.retry.ExponentialBackoffRetry; public class Main { public static void main(String[] args) throws Exception { CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", new ExponentialBackoffRetry(1000, 3)); client.start(); System.out.println("Connected to ZooKeeper"); client.close(); } }
Debug
Known issues
breakingCurator 5.x requires ZooKeeper 3.6.x or later; older ZooKeeper versions may cause compatibility issues.
fix
Ensure your ZooKeeper server version is 3.6.x or higher when using Curator 5.x.
affects: >=5.0.0
Upgrade
Version history
5.9.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
curator-framework — mvn dependency:get curator-framework · libregistry