• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
ZooKeeper | Curator Framework: List children of a zNode [getChildren]
  1. Notes
  2. Example

  1. Notes:
    The code bellow let you print all direct zNodes (children) under a specific path.

    Calling the method "CuratorFramework::getChildren" will return a list of zNode names (List<String>).

    If the path doesn't exist it will throw an exception:
    In order for the code bellow to work:
    ► Make sure to update the "CONNECT_STRING" variable with your information.
  2. Example
    Here's an example of how to list all zNodes under a specific path:
© 2025  mtitek