Home
Docker
Kubernetes
Java
Ubuntu
Maven
Big Data
CI
Install
Samples
Archived
Apache ZooKeeper
(3.9.3)
Introduction
ZooKeeper ensemble configuration
Install and configure ZooKeeper
Install and configure a ZooKeeper Standalone Server
Install and configure a ZooKeeper Cluster on the same host
Install and configure a ZooKeeper Cluster on different hosts
Verify ZooKeeper Status
HTTP administration interface (AdminServer)
Command Line Utilities: "zkCli"
Zookeeper - Super User
Apache Curator Framework
(5.4.0)
(code samples)
Maven dependencies
Maven - POM Configuration
CuratorFramework
Create a new instance of the CuratorFramework [newClient]
Create a facade on an existing CuratorFramework instance [usingNamespace]
checkExists
Check if a zNode exists
getChildren
List children of a zNode
create
Create a zNode
Create a zNode with data
create::creatingParentsIfNeeded
Create a zNode and its parents
Create a zNode and its parents with data
setData
Set the data of a zNode [setData]
Set the data of a zNode with a specific data version [setData::withVersion]
getData
Print the data of a zNode
ACL
Set the ACL of a zNode [setACL]
Print the ACL of a zNode [getACL]
delete
Delete a zNode
Annexes
Unit tests: Apache Curator framework (TestingCluster)
References
Apache ZooKeeper Essentials
Authors: Saurav Haloi
Publisher: Packt Publishing (January 2015)
ISBN: 978-1784391324
ZooKeeper Administrator's Guide
http://zookeeper.apache.org/doc/current/zookeeperAdmin.html
ZooKeeper Programmer's Guide
http://zookeeper.apache.org/doc/current/zookeeperProgrammers.html
© 2025
mti
tek