sudo docker-compose up -d
sudo docker exec -it kafka_kafka_1 /bin/bash
/bin/kafka-topics --create --topic my-events --bootstrap-server localhost:9092
/bin/kafka-console-producer --topic my-events --bootstrap-server localhost:9092
event 1
event 2
event 3
event4
<ctrl+c>
/bin/kafka-console-consumer --topic my-events --from-beginning --bootstrap-server localhost:9092
/bin/kafka-console-consumer --topic my-events --offset 10 --partition 0 --bootstrap-server localhost:9092
/bin/kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic my-events