Kafka Single Node
Goal: During development on Kafka streamings, we like to set up single node Kafka broker
Git clone the repo
Build the local docker image and run it using docker-compose. Do not close this terminal. If you want to run the container in background, append -d argument in the docker-compose up command.
Verify that the container is running
Launch a new terminal with console consumer. With topic auto creation turned on by default, the topic named sample will be created by default.
Launch another terminal with producer
Note: bootstrap server is the name of the hostname set in the docker-compose.yml file.
Type in a few message in the producer and see those message appear in the console consumer end.