标题:
Zookeeper入门之二-命令行基本操作(2)
[打印本页]
作者:
look_w
时间:
2019-4-12 17:11
标题:
Zookeeper入门之二-命令行基本操作(2)
删除
delete path
[zk: localhost:2181(CONNECTED) 11] ls /
[zk-jsy-book, zookeeper]
[zk: localhost:2181(CONNECTED) 12] delete /zk-jsy-book
Node not empty: /zk-jsy-book
[zk: localhost:2181(CONNECTED) 13] delete /zk-jsy-book/book1
[zk: localhost:2181(CONNECTED) 14] get /zk-jsy-book/book1
Node does not exist: /zk-jsy-book/book1
[zk: localhost:2181(CONNECTED) 15] delete /zk-jsy-book
[zk: localhost:2181(CONNECTED) 16] ls /
[zookeeper]
[zk: localhost:2181(CONNECTED) 17]
注意,无法删除一个有子节点的节点,如上所示。
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/)
Powered by Discuz! 7.0.0