[
https://issues.apache.org/jira/browse/ZOOKEEPER-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14061711#comment-14061711
]
Gautam Gopalakrishnan commented on ZOOKEEPER-1962:
--------------------------------------------------
Sample run with "ls -r"
{code}
[zk: localhost:2181(CONNECTED) 1] ls -?
usage: ls [options] path
-? help
-r recurse
-s stat
-w watch
ls [-s] [-w] [-r] path
...
[zk: localhost:2181(CONNECTED) 2] ls /a
[b, c, f, g, i]
[zk: localhost:2181(CONNECTED) 3] ls -r /a
/a/b
/a/b/d
/a/c
/a/c/e
/a/f
/a/g
/a/g/h
/a/i
{code}
> Add a CLI command to recursively list a znode and children
> ----------------------------------------------------------
>
> Key: ZOOKEEPER-1962
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1962
> Project: ZooKeeper
> Issue Type: New Feature
> Components: java client
> Reporter: Gautam Gopalakrishnan
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> When troubleshooting applications where znodes can be multiple levels deep
> (eg. HBase replication), it is handy to see all child znodes recursively
> rather than run an ls for each node manually.
> So I propose adding an option to the "ls" command (-r) which will list all
> child nodes under a given znode.
--
This message was sent by Atlassian JIRA
(v6.2#6252)