HUB
Sign inSign up
eurolinux-9-kafka logo

eurolinux/eurolinux-9-kafka

By eurolinux

•Updated over 2 years ago

Image
0

2.4K

eurolinux/eurolinux-9-kafka repository overview

⁠Apache Kafka on Enterprise Linux 9

This image is based on the official Apache Kafka image. It is built for SourceMation content delivery and open source analysis platform.

⁠Running the image

Running the image is as simple as running the following command:

docker run -d --name kafka-broker eurolinux/eurolinux-9-kafka:latest

You can get into the image by running the following command:

docker exec -it kafka-broker /bin/bash

Our image has set the WORKDIR to /opt/kafka/bin. You can skip the --workdir /opt/kafka/bin option.

Simple commands to create topics and produce/consume messages:

# create a topic with name test
./kafka-topics.sh --bootstrap-server localhost:9092 --create --topic test
# send message 'Hi mom!' to topic test
echo 'Hi mom!' | ./kafka-console-producer.sh --bootstrap-server localhost:9092 --topic test
# consume messages from topic test use ctrl+c to stop
./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

Lastly you can remove the container by running the following command:

docker rm -f kafka-broker

⁠Extra notes

Tag summary

Content type

Image

Digest

sha256:02fad0596…

Size

273 MB

Last updated

over 2 years ago

docker pull eurolinux/eurolinux-9-kafka