zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: How to use zookeeper.DigestAuthenticationProvider.superDigest?
Date Thu, 29 Dec 2011 01:06:34 GMT
According to the docs it's a system property only, not a config property:

http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_authOptions

I suspect this is the issue.

Patrick

On Wed, Dec 28, 2011 at 8:13 AM, Stephen Tyree <tyree731@gmail.com> wrote:
> Hello,
>
> I added the following line to my zookeeper config file:
>
>
> zookeeper.DigestAuthenticationProvider.superDigest=super:4LVnEr8VX5VVtn/KiU6Aff8jqh8=
>
> Which I generated using the following command-line:
>
>    java -cp "./zookeeper-3.3.2.jar:./lib/log4j-1.2.15.jar"
> org.apache.zookeeper.server.auth.DigestAuthenticationProvider
> super:EjV93vqJeB3wHqrx
>
> I then run zkCli.sh, and using the following call to addauth:
>
>   addauth digest super:EjV93vqJeB3wHqrx
>
> However, when I attempt to delete anything with an ACL, I get the following
> error:
>
>   Exception in thread "main"
> org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode =
> NoAuth
>
> What am I doing wrong here?
>
> Thanks,
> Stephen Tyree

Mime
View raw message