- reference: Kafka quick start
- Open terminal window and start the zookeeper service
cd ~/kafka/kafka_2.13-2.7.0/
bin/zookeeper-server-start.sh config/zookeeper.properties
- In a new terminal tab, start the broker service
bin/kafka-server-start.sh config/server.properties
- In a new terminal tab, create a game-events topic and publish event messages
bin/kafka-topics.sh --create --topic game-events --bootstrap-server localhost:9092
- Publish event messages
bin/kafka-console-producer.sh --topic game-events --bootstrap-server localhost:9092
- Add event messages at prompt
- BeginTeamCompetition
{"BeginTeamCompetition": {"home_team_id": 1, "away_team_id": 2, "venue_id": 1}}