Coder
Coder

Reputation: 1899

Find node in Zookeeper

I want to know if there is a way to walk the Zookeeper's (ZK) in memory database and find if any particular node exists. Something similar to find . -name file inside ZK

I am logged in to ZK using zkCli.

Upvotes: 5

Views: 12521

Answers (1)

Nicola Ben
Nicola Ben

Reputation: 11337

Once you have your ZK cluster running, you can connect to a node and query the cluster. For example:

$ZK_HOME/bin/zkCli.sh -server localhost

List of nodes:

ls /

List of commands:

?

Upvotes: 6

Related Questions