Find node in Zookeeper
Asked Answered
T

1

5

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.

Tegument answered 2/5, 2018 at 1:15 Comment(0)
S
6

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:

?
Solvolysis answered 6/5, 2018 at 9:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.