list

Display a list of objects.

Use this command to display a list of specified objects from the server to which you are connected.

Synopsis

list connections | zookeepers | bootstrap-servers

list acls [force | principal <String> | cluster | transaction-id <String> | operation <String>]

list topics [force | exclude-internal | disable-rack-aware]

Options

connections
all connections to both ZooKeepers and bootstrap-servers
zookeepers
connections to ZooKeepers
bootstrap-servers
connections to bootstrap-servers
acls
all configured ACLs
topics
all configured topics

Optional Argumentss

force
bypass yes/no prompts; ACL or topic option
exclude-internal
topic option
principal <String>
ACL option
operation <String>
ACL option
cluster
ACL producer option
transaction-id <String>
ACL producer option
group <String>
ACL consumer option
disable-rack-aware
topic option

Examples

zookeeper@localhost:2181> list topics
topic1
topic2
topic3
topic6

zookeeper@localhost:2181> list acls
Current ACLs for resource `Topic:LITERAL:topic2`:
        type5:fortopic2 has Allow permission for operations: All from hosts: *

zookeeper@localhost:2181> list connections
localhost:2181 (zookeeper)

See Also

create, delete