Zookeeper zkcli如何从父级继承ACL?

时间:2016-08-12 13:16:11

标签: acl apache-zookeeper

在使用zkcli(zookeeper v3.4.6)创建子项时,有没有办法从父znode继承ACL?
我找不到语法方面的帮助,如果我没有指定acl,它会给出world而不是父ACL:

[zk: zookeeper3(CONNECTED) 2] addauth digest user1:pass
[zk: zookeeper3(CONNECTED) 4] create /parent "" auth:user1:crdwa
Created /parent
[zk: zookeeper3(CONNECTED) 5] getAcl /parent
'digest,'user1:UZIsvOKp29j8vAahJzjgpA1VTOk=
: cdrwa
[zk: zookeeper3(CONNECTED) 6] create /parent/child ""   
Created /parent/child
[zk: zookeeper3(CONNECTED) 8] getAcl /parent/child
'world,'anyone
: cdrwa

感谢。

0 个答案:

没有答案