# Attach to kafka's container
docker exec -it ht2023_kafka-kafka-1 /bin/bash
# Create topics
kafka-topics.sh --create --topic notifications --bootstrap-server localhost:9092
# Check existing topics
kafka-topics.sh --list --bootstrap-server localhost:9092
# Get topic's messages
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic notifications --from-beginning
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.