Skip to content

Instantly share code, notes, and snippets.

@charity
Created June 28, 2016 22:36
Show Gist options
  • Save charity/d83f25b5e3f4994eb202f35fae74e7d1 to your computer and use it in GitHub Desktop.
Save charity/d83f25b5e3f4994eb202f35fae74e7d1 to your computer and use it in GitHub Desktop.
PRODUCTION root@kafka-6c3f65f0:~# kafkacat -L -b localhost:9092
Metadata for all topics (from broker -1: localhost:9092/bootstrap):
4 brokers:
broker 1003 at ip-10-0-246-113.ec2.internal:9092
broker 1004 at ip-10-0-190-45.ec2.internal:9092
broker 1009 at ip-10-0-213-10.ec2.internal:9092
broker 1001 at ip-10-0-148-52.ec2.internal:9092
4 topics:
topic "hound-dogfood.retriever-mutation" with 1 partitions:
partition 0, leader 1001, replicas: 1001, isrs: 1001
topic "__consumer_offsets" with 50 partitions:
partition 23, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 41, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 32, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 8, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 44, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 17, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 35, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 26, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 11, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 38, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 29, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 47, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 20, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 2, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 5, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 14, leader 1003, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 46, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 40, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 49, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 13, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 4, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 22, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 31, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 16, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 7, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 43, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 25, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 34, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 10, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 37, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 1, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 28, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 19, leader 1001, replicas: 1003,1001, isrs: 1001,1003, Broker: Replica not available
partition 45, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 36, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 27, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 9, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 18, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 21, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 48, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 3, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 12, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 30, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 39, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 15, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 42, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 33, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 24, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 6, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
partition 0, leader 1001, replicas: 1001,1003, isrs: 1001,1003, Broker: Replica not available
topic "hound-prod.retriever-mutation" with 6 partitions:
partition 2, leader 1009, replicas: 1009,1004, isrs: 1009,1004
partition 5, leader 1004, replicas: 1004,1009, isrs: 1004,1009
partition 4, leader 1003, replicas: 1003,1004, isrs: 1003,1004
partition 1, leader 1004, replicas: 1004,1003, isrs: 1003,1004
partition 3, leader 1001, replicas: 1001,1009, isrs: 1009,1001
partition 0, leader 1003, replicas: 1003,1001, isrs: 1001,1003
PRODUCTION root@kafka-6c3f65f0:~# kafka-topics --zookeeper $ZK_HOST --describe
Topic:__consumer_offsets PartitionCount:50 ReplicationFactor:3 Configs:segment.bytes=104857600,cleanup.policy=compact,compression.type=uncompressed
Topic: __consumer_offsets Partition: 0 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 1 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 2 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 3 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 4 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 5 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 6 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 7 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 8 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 9 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 10 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 11 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 12 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 13 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 14 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 15 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 16 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 17 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 18 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 19 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 20 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 21 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 22 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 23 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 24 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 25 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 26 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 27 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 28 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 29 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 30 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 31 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 32 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 33 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 34 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 35 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 36 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 37 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 38 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 39 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 40 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 41 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 42 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 43 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 44 Leader: 1003 Replicas: 1003,1001,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 45 Leader: 1001 Replicas: 1001,1003,1002 Isr: 1001,1003
Topic: __consumer_offsets Partition: 46 Leader: 1001 Replicas: 1002,1001,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 47 Leader: 1003 Replicas: 1003,1002,1001 Isr: 1001,1003
Topic: __consumer_offsets Partition: 48 Leader: 1001 Replicas: 1001,1002,1003 Isr: 1001,1003
Topic: __consumer_offsets Partition: 49 Leader: 1001 Replicas: 1002,1003,1001 Isr: 1001,1003
Topic:hound-prod.retriever-mutation PartitionCount:6 ReplicationFactor:2 Configs:
Topic: hound-prod.retriever-mutation Partition: 0 Leader: 1003 Replicas: 1003,1001 Isr: 1001,1003
Topic: hound-prod.retriever-mutation Partition: 1 Leader: 1004 Replicas: 1004,1003 Isr: 1003,1004
Topic: hound-prod.retriever-mutation Partition: 2 Leader: 1009 Replicas: 1009,1004 Isr: 1009,1004
Topic: hound-prod.retriever-mutation Partition: 3 Leader: 1001 Replicas: 1001,1009 Isr: 1009,1001
Topic: hound-prod.retriever-mutation Partition: 4 Leader: 1003 Replicas: 1003,1004 Isr: 1003,1004
Topic: hound-prod.retriever-mutation Partition: 5 Leader: 1004 Replicas: 1004,1009 Isr: 1004,1009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment