๐Ÿ“ BLOG.IK.AM

@making's memo
(๐Ÿ—ƒ Categories ๐Ÿท Tags)

Getting started with Apache Kafka w/ Docker

๐Ÿ—ƒ {Middleware/DistributedSystem/Kafka}

๐Ÿท Kafka

๐Ÿ—“ Updated at 2015-11-15T14:59:32Z by Toshiaki Maki  ๐Ÿ—“ Created at 2015-11-15T14:59:32Z by Toshiaki Maki  {โœ’๏ธ๏ธ Edit  โฐ History}


โ˜  Danger: This content is too old. You should avoid reading. If you want to read, please click .

Memo

$ export DOCKER_HOST=192.168.99.100
$ docker run --rm \
     --name kafka \
     -p 9092:9092 \
     -p 2181:2181 \
     --env ADVERTISED_HOST=${DOCKER_HOST} \
     --env ADVERTISED_PORT=9092 \
     tcnksm/single-kafka
$ brew install kafkacat
$ echo 'This is test message' | kafkacat -P -t foo -b ${DOCKER_HOST}:9092
$ kafkacat -C -t foo -b ${DOCKER_HOST}:9092