- Install Kafka
- Change config/zookeeper.properties and config/server.properties to use non-temporary folders
- Run Zookeeper:
bin/zookeeper-server-start.sh config/zookeeper.properties
- Run Kafka:
bin/kafka-server-start.sh config/server.properties
- Produce some records to the ebooks topic:
bin/kafka-console-producer.sh --bootstrap-server localhost:9092 --topic ebooks
- Consume the ebooks topic from the beginning:
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic ebooks --from-beginning
- List the topics
bin/kafka-topics.sh --bootstrap-server localhost:9092 --list
- Describe the ebooks topic:
bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic ebooks
Created
June 1, 2020 19:46
-
-
Save alexandreaquiles/7073927483010f4df87f4f9670b4f5c9 to your computer and use it in GitHub Desktop.
Kafka Exercise
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment