Sent from my iPhone
On Jun 29, 2012, at 3:34 AM, sun liwei <[email protected]> wrote: > I have the following znodes in zk: > > /Apple/Boy/Cat > > And the ACL of these three znodes are: > > / world:anyone:cdrwa > /App world:anyone:cdrwa > /Apple/Boy world:anyone:cdrwa > /Apple/Boy/Cat world:anyone:cdrwa > > Then I change the ACL of /Apple/Boy znode from cdrwa to r (this is a > mistake): > > / world:anyone:cdrwa > /App world:anyone:cdrwa > /Apple/Boy world:anyone:r > /Apple/Boy/Cat world:anyone:cdrwa > > Now, I have a problem to delete the /Apple/Boy znode. Before /Apple/Boy is > deleted, I should delete /Apple/Boy/Cat, but /Apple/Boy/Cat can't be > deleted according to the ACL of /Apple/Boy which is 'r' (readonly). > > So, is there any way to delete the znode /Apple/Boy or recovery the its ACL > to 'cdrwa'? You can fabricate super user credentials and then enable the super user in your cluster's configs. After rolling the cluster you can authenticate as super and then do as you will with any node. See http://zookeeper.apache.org/doc/r3.2.2/zookeeperAdmin.html#sc_authOptions > > Thanks in advance. > Liwei
