/kafka-missed-msg-test

Some source code to track how Kafka misses messages

Primary LanguageJavaScriptApache License 2.0Apache-2.0

How does Kafka miss a message

Run consumer

docker-compose run client kafka-console-consumer.sh --bootstrap-server kafka.dev:9092 --topic test --offset 4 --partition 0

Create Kafka topic

docker-compose exec kafka kafka-topics.sh --zookeeper zookeeper.dev:2181 --create  --replication-factor 3 --partitions 3 --topic test

How to run

KAFKA_HOSTS=kafka.dev:9092 groovy kafka-producer.groovy
KAFKA_HOSTS=kafka.dev:9092 groovy kafka-producer.groovy 

How to configure Burrow notifier

https://godoc.org/github.com/linkedin/Burrow/core/protocol#ConsumerOffset https://github.com/linkedin/Burrow/wiki/Notifier-HTTP