Running the examples is fairly easy.
- Clone the repository and cd into it.
- Choose one of the following examples:
$ cd ssl-example
$ cd sasl-example
- Run
$ ./script.sh
- Once the script has finished, you can
- Start a producer:
$ docker exec -it client /bin/bash bin/kafka-console-producer.sh --bootstrap-server broker:9093 --topic test --producer.config config/producer.properties
- Start a consumer:
$ docker exec -it client /bin/bash bin/kafka-console-consumer.sh --bootstrap-server broker:9093 --topic test --from-beginning --consumer.config config/consumer.properties
- Start a producer:
$ docker rm zookeeper broker client -f && docker network rm kafka-network