Is there anyway to give a Zookeeper node a NULL ACL via python-bindings? -


i'm trying create node using python bindings bundled zookeeper distribution ( src/contrib/zkpython/ ). using zookeeper-3.3.1.

the pydoc create states if acl null node inherit parents acl setting parameter none causes invalid acl exception.

i've taken @ parse_acls in zookeeper.c , seems conflict pydoc don't have experience py c api.

if can't set acl null there other acl cause inherit parent?

i had same problem , found no solution. workaround add additional step. example:

import zookeeper zk parent_path = "/" stat, acl = zk.get_acl(zoohandle, parent_path) ret = zk.create(zoohandle, node_path, "", acl, 0) 

further tip: in zookeeper-3.3.1 zk.get() returns 512 bytes of node data. should fixed in next release (3.3.3).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -