Run a hello world on Kafka with go
The purpose of this tutorial is to execute a simple command on the apache kafka cluster.
Requirements
You need first to have a apache kafka cluster deployed. More information here
Certificates
You need to create a directory that will be mounted on the docker container. It must contains the following
Build and run
Once you have created your user, and set up your IP restrictions you can run the following:
read URI
## PATH_TO_CERTIFICATES must be a directory containing all the 3 certificates listed previously
read PATH_TO_CERTIFICATES
docker build -t kafka-go-hello-world .
docker run -v $PATH_TO_CERTIFICATES:/certificates kafka-go-hello-world $URI
Dependencies
This example is using the following external dependencies: