image: juplo/toolbox
command: >
bash -c "
+ kafka-topics --bootstrap-server kafka:9092 --describe --topic test
kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic test
kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 2 --replication-factor 3 --config min.insync.replicas=2
- kafka-topics --bootstrap-server kafka:9092 --describe --topic test
+ kafka-topics --bootstrap-server kafka-1:9092 --describe --topic test
+ kafka-topics --bootstrap-server kafka-2:9092 --describe --topic test
+ kafka-topics --bootstrap-server kafka-3:9092 --describe --topic test
+ kafka-topics --bootstrap-server kafka:9092 --describe --topic test | kafkacat -P -b kafka:9092 -t test -X acks=all
+ kafkacat -C -b kafka:9092 -t test -o 0 -e
"
cli: