Introduction to Apache Kafka
Mike Metzger
Data Engineering Consultant
kafka-console-consumer.sh
bin/
folder, with other Kafka toolsbin/kafka-console-consumer.sh
kafka-console-producer
:--topic
--bootstrap-server
--from-beginning
--max-messages <number>
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 \
--topic testing --from-beginning
This is the first message
This is the second message
This is the third message
<ctrl+c to exit>
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 /
--topic testing --from-beginning --max-messages 2
This is the first message
This is the second message
<automatically exits>
Introduction to Apache Kafka