ZooKeeper 命令使用

1删除节点,提示Authenticationisnotvalid

[zk:localhost:2181(CONNECTED)27]connectlocalhost:2181ScheduleAdmin:password

delete/taobao-pamirs-schedule/huijin/factory

Authenticationisnotvalid:/taobao-pamirs-schedule/huijin/factory

2操作有权限的节点要先使用

[zk:localhost:2181(CONNECTED)28]addauthdigestScheduleAdmin:password

[zk:localhost:2181(CONNECTED)29]delete/taobao-pamirs-schedule/huijin/factory

3查看节点是否已删除

[zk:localhost:2181(CONNECTED)30]ls2/taobao-pamirs-schedule/huijin

[strategy,baseTaskType]

相关推荐