Zookeeper 3.5.7 version - client command line operation (node deletion and viewing)

1. Example of node deletion

1.1. Node deletion

  • Create a test node on the client and view the node

    [zk: localhost:2181(CONNECTED) 5] create /test "123456"
    

    insert image description here

  • Delete the test node and view the node

    [zk: localhost:2181(CONNECTED) 7] delete /test
    

    insert image description here

1.2. Recursive node deletion

  • First, create a test node on the client

    [zk: localhost:2181(CONNECTED) 15] create /test "123"
    

    insert image description here

  • Then, create a t1 child node on the test node

    [zk: localhost:2181(CONNECTED) 16] create /test/t1 "456"
    

    insert image description here

  • Finally, recursively delete the test node and t1 child nodes

    [zk: localhost:2181(CONNECTED) 18] deleteall /test
    

    insert image description here

2. Example of viewing node status

  • Create a test1 node on the client

    [zk: localhost:2181(CONNECTED) 20] create /test1 "123456"
    

    insert image description here

  • View test1 node status

    [zk: localhost:2181(CONNECTED) 21] stat /test1
    

    insert image description here

Guess you like

Origin blog.csdn.net/li1325169021/article/details/129432869
Recommended