• Home
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
ZooKeeper | Curator Framework: Create a zNode and its parents [create::creatingParentsIfNeeded]
  1. Notes
  2. Example

  1. Notes:
    The code bellow let you create a zNode (and its parents if not created yet) under a specific path.

    Calling the method "CuratorFramework::create" will create the zNode (and its parents if not created yet) and return the path of the created zNode.

    You will get this error if the zNode exists in ZooKeeper:
    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 create a zNode (and its parents if not created yet) under a specific path:
© 2010-2022  mtitek