On Wed, Dec 25, 2013 at 2:59 PM, Kaushal Shriyan
<[email protected]>wrote:

> On Wed, Dec 25, 2013 at 2:56 PM, Raúl Gutiérrez Segalés <
> [email protected]> wrote:
>
>> On 24 December 2013 09:52, Kaushal Shriyan <[email protected]>
>> wrote:
>>
>> > Hi,
>> >
>> > Is there a way to list all the nodes and sub nodes on the command line
>> in
>> > Zookeeper ?
>> >
>>
>> You can do this with zk_shell:
>>
>> $ pip install zk_shell
>> $ zk-shell server:2181 --run-once "tree /"
>>
>>
> Thanks Raul for the reply, Do i need to install zk_shell on the server
> where zookeeper leader or observer process is running?
> I am not sure if i understand it completely.
>
> Thanks and Regards,
>
> Kaushal
>
>
Hi

I am getting the below error

zk-shell server:2181 --run-once "tree /"
Traceback (most recent call last):
  File "/usr/bin/zk-shell", line 3, in <module>
    from zk_shell.cli import CLI
  File "/usr/lib/python2.6/site-packages/zk_shell/cli.py", line 7, in
<module>
    from .shell import Shell
  File "/usr/lib/python2.6/site-packages/zk_shell/shell.py", line 50, in
<module>
    from .copy import copy, CopyError
  File "/usr/lib/python2.6/site-packages/zk_shell/copy.py", line 334
    with src, dst:
            ^
SyntaxError: invalid syntax
# zk-shell 127.0.0.1:2181 --run-once "tree /"
Traceback (most recent call last):
  File "/usr/bin/zk-shell", line 3, in <module>
    from zk_shell.cli import CLI
  File "/usr/lib/python2.6/site-packages/zk_shell/cli.py", line 7, in
<module>
    from .shell import Shell
  File "/usr/lib/python2.6/site-packages/zk_shell/shell.py", line 50, in
<module>
    from .copy import copy, CopyError
  File "/usr/lib/python2.6/site-packages/zk_shell/copy.py", line 334
    with src, dst:
            ^
SyntaxError: invalid syntax
]#

Thanks and Regards,

Kaushal

Reply via email to