You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by A J <s5...@gmail.com> on 2011/12/21 18:34:50 UTC
Syntax for zkCli.sh commands
Hi
Where can I get description and syntax for all zkCli.sh commands , such as:
get path [watch]
ls path [watch]
set path data [version]
rmr path
delquota [-n|-b] path
quit
printwatches on|off
create [-s] [-e] path data acl
stat path [watch]
close
ls2 path [watch]
history
listquota path
setAcl path acl
getAcl path
sync path
redo cmdno
addauth scheme auth
delete path [version]
setquota -n|-b val path
For example, I need to watch a node. What is the exact syntax with the
ls or the get command.
I skimmed through all the documentation over at
http://zookeeper.apache.org/doc/r3.4.0 but none really goes through
the zkCli.sh commands.
Thanks.
Re: Syntax for zkCli.sh commands
Posted by Patrick Hunt <ph...@apache.org>.
Set it to "true" or "1" to register a watch in the shell.
Patrick
On Wed, Dec 21, 2011 at 11:35 AM, AJ <s5...@gmail.com> wrote:
> ok. Can I get the syntax for the 'watch' option in the get and ls commands.
> Thanks.
>
> --
> View this message in context: http://zookeeper-user.578899.n2.nabble.com/Syntax-for-zkCli-sh-commands-tp7116117p7116361.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
Re: Syntax for zkCli.sh commands
Posted by AJ <s5...@gmail.com>.
ok. Can I get the syntax for the 'watch' option in the get and ls commands.
Thanks.
--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/Syntax-for-zkCli-sh-commands-tp7116117p7116361.html
Sent from the zookeeper-user mailing list archive at Nabble.com.
Re: Syntax for zkCli.sh commands
Posted by Patrick Hunt <ph...@apache.org>.
I'm afraid that's all we have at the moment. It would be great if
someone contributed a "man" page and improved the usage information.
Now that we have packaging support in ZK itself having some man pages
would be great.
Patrick
On Wed, Dec 21, 2011 at 9:34 AM, A J <s5...@gmail.com> wrote:
> Hi
> Where can I get description and syntax for all zkCli.sh commands , such as:
> get path [watch]
> ls path [watch]
> set path data [version]
> rmr path
> delquota [-n|-b] path
> quit
> printwatches on|off
> create [-s] [-e] path data acl
> stat path [watch]
> close
> ls2 path [watch]
> history
> listquota path
> setAcl path acl
> getAcl path
> sync path
> redo cmdno
> addauth scheme auth
> delete path [version]
> setquota -n|-b val path
>
>
> For example, I need to watch a node. What is the exact syntax with the
> ls or the get command.
> I skimmed through all the documentation over at
> http://zookeeper.apache.org/doc/r3.4.0 but none really goes through
> the zkCli.sh commands.
>
> Thanks.