Friday, 1 November 2019

Kafka cli: Describe topic


Below command give more information about the topic.

kafka-topics.sh --bootstrap-server {bootStratServerDetails} --topic {topicName} --describe

$kafka-topics.sh --bootstrap-server localhost:9092 --list
myFirstTopic
$
$kafka-topics.sh --bootstrap-server localhost:9092 --topic myFirstTopic --describe
Topic:myFirstTopic PartitionCount:3 ReplicationFactor:1 Configs:segment.bytes=1073741824
 Topic: myFirstTopic Partition: 0 Leader: 0 Replicas: 0 Isr: 0
 Topic: myFirstTopic Partition: 1 Leader: 0 Replicas: 0 Isr: 0
 Topic: myFirstTopic Partition: 2 Leader: 0 Replicas: 0 Isr: 0



Previous                                                    Next                                                    Home

No comments:

Post a Comment