Gangmax Blog

ZooKeeper

ZooKeeper is a high-performance coordination service for distributed applications. It exposes common services - such as naming, configuration management, synchronization, and group services - in a simple interface so you don’t have to write them from scratch.

CLI commands

From here

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Create a znode.
create /path /data
# Query a znode.
get /path
# Watches show a notification when the specified znode
# or znode’s children data changes.
get /path [watch] 1
# Set data of a znode.
set /path /data
# List znode children.
ls /path
# Describe the metadata of a specified znode
stat /path
# Delete znode with it's children.
rmr /path
# Delete znode without any children.
delete /path

GUI

There are quite a few tools which can be use to browse the ZooKeeper data, and even manipulate it:

  1. zkui: A UI dashboard that allows CRUD operations on Zookeeper written in Java.

  2. zk-web: A web UI of Zookeeper written in Clojure.

Comments