show
Use this command to display an object's configuration values on the server to which you are connected.
Synopsis (zookeeper or bootstrap-server)
show broker <Name> [force]
show topic <TopicName> [exclude-internal | force | if-exists | topics-with-overrides | unavailable-partitions | under-replicated-partitions | disable-rack-aware]
show all-topics [exclude-internal | force | topics-with-overrides | unavailable-partitions | under-replicated-partitions | disable-rack-aware]
Options
- broker <Name>
- broker name
- client <Name>
- client name
- user <Name>
- user name
- topic <TopicName>
- topic name
- all-topics
- all topics
- exclude-internal
- topics option
- force
- bypass yes/no prompts
- if-exists
- topic option
- topics-with-overrides
- topics option
- unavailable-partitions
- topics option
- under-replicated-partitions
- topics option
- disable-rack-aware
- topic option
Examples (zookeeper or bootstrap-server)
zookeeper@localhost:2181> show all-topics Topic:topic1 PartitionCount:1 ReplicationFactor:1 Configs: Topic: topic1 Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Topic:topic2 PartitionCount:1 ReplicationFactor:1 Configs: Topic: topic2 Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Topic:topic3 PartitionCount:1 ReplicationFactor:1 Configs: Topic: topic3 Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Topic:topic6 PartitionCount:1 ReplicationFactor:1 Configs: Topic: topic6 Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Topic:topicname PartitionCount:1 ReplicationFactor:1 Configs: Topic: topicname Partition: 0 Leader: 0 Replicas: 0 Isr: 0 zookeeper@localhost:2181> show topic topic2 Topic:topic2 PartitionCount:1 ReplicationFactor:1 Configs: Topic: topic2 Partition: 0 Leader: 0 Replicas: 0 Isr: 0 zookeeper@localhost:2181> show broker 0 Configs for brokers '0' are log.message.timestamp.type=CreateTime
Copyright © Cloud Software Group, Inc. All rights reserved.