Public Repository

Last pushed: 8 days ago
Short Description
Docker image for Kafka (0.10, 0.11, 1.0.0, 1.0.1, 1.1.0) message broker including Zookeeper
Full Description

Kafka Zookeeper

Docker image for single Kafka message broker including Zookeeper

Run container

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

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

Docker Pull Command
Owner
johnnypark