Sign inSign up

mosheblumberg/zookeeper-kafka

By mosheblumberg

•Updated over 3 years ago

Kafka and Zookeeper combined imageĀ 

Image
0

135

mosheblumberg/zookeeper-kafka repository overview

⁠Kafka Zookeeper

Docker image for single Kafka message broker including Zookeeper

Github: https://github.com/MosheBlumbergX/docker-kafka-zookeeper⁠
Latest: 3.3.1

⁠Run container

docker run -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=127.0.0.1  -e NUM_PARTITIONS=10 johnnypark/kafka-zookeeper

⁠Environment Parameters

    ADVERTISED_HOST sets Kafka Broker config advertised.listeners to PLAINTEXT://[ADVERTISED_HOST]
    NUM_PARTITIONS sets Kafka Broker config num.partitions to [NUM_PARTITIONS]

⁠Test

⁠Run Kafka console consumer
kafka-console-consumer --bootstrap-server 127.0.0.1:9092 --topic foobar
⁠Run Kafka console producer
kafka-console-producer --broker-list 127.0.0.1:9092 --topic foobar
test1
test2
test3
⁠Verify messages been received in console consumer
test1
test2
test3

⁠Credits

Originally cloned and inspired by https://github.com/spotify/docker-kafka⁠ and https://github.com/hey-johnnypark/docker-kafka-zookeeper⁠

Tag summary

Content type

Image

Digest

sha256:c414f9f10…

Size

308.3 MB

Last updated

over 3 years ago

docker pull mosheblumberg/zookeeper-kafka:3.3.1