I am facing issue with kazoo while implementing lock with default_acl. When I initialize client and try to create node, it shows, NoAuthError. I m sharing the code below.
credentials=make_digest_acl_credential('distribution','password') zk= KazooClient(hosts='192xxxx:2181,192.xxxxx:2181,192xxxxx:2181', default_acl=(make_acl('digest', credentials, all=True),)) zk.start() zk.add_auth('digest',credentials) zk.create("/testNode/locking",makepath=True) # i get error here while creating
As lock function of Kazoo client also creates an ephemeral node, hence, that also doesn't work...
Please help me out in this ....thanks in advance :)
I am facing issue with kazoo while implementing lock with default_acl. When I initialize client and try to create node, it shows, NoAuthError. I m sharing the code below.
credentials=make_digest_acl_credential('distribution','password') zk= KazooClient(hosts='192xxxx:2181,192.xxxxx:2181,192xxxxx:2181', default_acl=(make_acl('digest', credentials, all=True),)) zk.start() zk.add_auth('digest',credentials) zk.create("/testNode/locking",makepath=True) # i get error here while creating
As lock function of Kazoo client also creates an ephemeral node, hence, that also doesn't work...
Please help me out in this ....thanks in advance :)