Tutorial by Examples

This tool let you list, create, alter and describe topics. List topics: kafka-topics --zookeeper localhost:2181 --list Create a topic: kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test creates a topic with one partition and no replication....
This tool lets you produce messages from the command-line. Send simple string messages to a topic: kafka-console-producer --broker-list localhost:9092 --topic test here is a message here is another message ^D (each new line is a new message, type ctrl+D or ctrl+C to stop) Send messages with...
This tool let's you consume messages from a topic. to use the old consumer implementation, replace --bootstrap-server with --zookeeper. Display simple messages: kafka-console-consumer --bootstrap-server localhost:9092 --topic test Consume old messages: In order to see older messages, you...
This consumer is a low-level tool which allows you to consume messages from specific partitions, offsets and replicas. Useful parameters: parition: the specific partition to consume from (default to all) offset: the beginning offset. Use -2 to consume messages from the beginning, -1 to consume ...
This tool allows you to list, describe, or delete consumer groups. Have a look at this article for more information about consumer groups. if you still use the old consumer implementation, replace --bootstrap-server with --zookeeper. List consumer groups: kafka-consumer-groups --bootstrap-s...

Page 1 of 1