- install & start docker
- init and start kafka:
docker-compose up -d
Start: docker-compose start
Stop: docker-compose stop
Guild: https://kafka.apache.org/quickstart
CREATE A TOPIC TO STORE YOUR EVENTS
bin/kafka-topics.sh --create --topic cdata --bootstrap-server localhost:29092
describe topic:
bin/kafka-topics.sh --describe --topic cdata --bootstrap-server localhost:29092
WRITE SOME EVENTS INTO THE TOPIC
bin/kafka-console-producer.sh --topic cdata --bootstrap-server localhost:29092
READ THE EVENTS
bin/kafka-console-consumer.sh --topic cdata --from-beginning --bootstrap-server localhost:29092
bin/kafka-console-consumer.sh --topic multitype --from-beginning --bootstrap-server localhost:29092