Apache Kafka

Step 3: Create a topic

> bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

> bin/kafka-topics.sh --list --zookeeper localhost:2181

Step 4: Send some messages


bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test

Step 5: Start a consumer


> bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning