- count-0:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 0 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-1:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 1 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-2:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 2 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-3:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 3 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-4:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 4 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-5:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 5 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "
-
- count-6:
- image: juplo/toolbox
- command: >
- bash -c "
- kafka-console-consumer \
- --bootstrap-server kafka:9092 \
- --topic test \
- --partition 6 \
- --property print.key=true \
- --property print.value=false \
- --from-beginning \
- --timeout-ms 1000 2>/dev/null | sort | uniq -c
- "