Zookeeper Operations

From NovaOrdis Knowledge Base
Revision as of 00:45, 10 September 2019 by Ovidiu (talk | contribs) (→‎Zookeeper in Kubernetes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Zookeeper Client

zkCli -server localhost:2181

Interactive Commands

Help

> help

List

> ls /

Delete Recursively

> rmr /something

Batch Commands

zkCli -server localhost:2181 rmr /something

Zookeeper in Kubernetes

kubectl exec zookeeper-0 -- bin/zkCli.sh ls /
kubectl exec zookeeper-0 -- bin/zkCli.sh deleteall  /dev-local