Skip to content

Instantly share code, notes, and snippets.

@alexandreaquiles
Created June 1, 2020 19:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandreaquiles/7073927483010f4df87f4f9670b4f5c9 to your computer and use it in GitHub Desktop.
Save alexandreaquiles/7073927483010f4df87f4f9670b4f5c9 to your computer and use it in GitHub Desktop.
Kafka Exercise
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment