Skip to content

Instantly share code, notes, and snippets.

@2013techsmarts
Created November 12, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2013techsmarts/fb2cad5ad39aab6263a606ba3e7e68be to your computer and use it in GitHub Desktop.
Save 2013techsmarts/fb2cad5ad39aab6263a606ba3e7e68be to your computer and use it in GitHub Desktop.
./kafka-topics.sh --describe --zookeeper localhost:2181 --topic first_topic
#### The Result for the above command#####
Topic:first_topic PartitionCount:3 ReplicationFactor:3 Configs:
Topic: first_topic Partition: 0 Leader: 1 Replicas: 1,2,3 Isr: 1,2,3
Topic: first_topic Partition: 1 Leader: 2 Replicas: 2,3,1 Isr: 2,3,1
Topic: first_topic Partition: 2 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment