Zookeeper Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
  zkCli -server localhost:2181
  zkCli -server localhost:2181


==Help==
==Interactive Commands==
 
===Help===


  > help
  > help


==List==
===List===


  > ls /
  > ls /


==Delete Recursively==
===Delete Recursively===


  > rmr /something
  > 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

Latest revision as of 00:45, 10 September 2019

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