Sign inSign up

aarongdocker/kafka

By aarongdocker

Updated over 10 years ago

An Apache Kafka Broker

Image
0

1.2K

aarongdocker/kafka repository overview

Description:

Currently setup to start a Kafka 0.9.0.0 Broker

Runtime options:

None.

Envrionment Variables

BROKER_ID: A non-negative integer

CLUSTER_NAME: Name used in Zookeeper ZNode, helps keep it off the root znode

ZK_IPS: comma separated list of zookeeper IPS, e.g. zk01:2181,zk02:2181,zk03:2181,zk04:2181,zk05:2181

ADVERTISED_HOST_NAME: Optional hostname, if not using --net=HOST in the docker run command

Volumes:

/data/kafka: where the broker stores it's log information

Ports:

9092: default kafka port

9999: JMX Port

Command Line examples
* sudo docker run --name kafka --restart on-failure:5 --log-driver=journald
 -e BROKER_ID=1 \
 -e CLUSTER_NAME=dsra \
 -e ZK_IPS=zk01:2181,zk02:2181,zk03:2181,zk04:2181,zk05:2181 \
 -p 9092:9092 -p 9999:9999 aarongdocker/kafka
Example Broker ID, using the last octet of the IP:
BROKER_ID=`/usr/bin/ifconfig bond0 | /usr/bin/sed -n 2p | /usr/bin/awk '{ print $2 }' | cut -d . -f 4`

Tag summary

Content type

Image

Digest

sha256:19760ed35

Size

256.5 MB

Last updated

over 10 years ago

docker pull aarongdocker/kafka