Skip to content

Instantly share code, notes, and snippets.

@cji
Last active December 14, 2016 22:00
Show Gist options
  • Save cji/3dd9e2eade8c78b2efae924e7ad5d019 to your computer and use it in GitHub Desktop.
Save cji/3dd9e2eade8c78b2efae924e7ad5d019 to your computer and use it in GitHub Desktop.
Getting Started with a local Kafka Cluster
* install Docker for Mac
* clone the repo https://github.com/wurstmeister/kafka-docker
* cd kafka-doctor
* docker-compose up
* docker-compose scale kafka=3
* `docker network inspect kafkadocker_default` and get the Default Gateway to use as the IPs below
* ./start-kafka-shell.sh 172.18.0.1 172.18.0.1:2181
$KAFKA_HOME/bin/kafka-topics.sh --create --topic topic \
--partitions 4 --zookeeper $ZK --replication-factor 2
Ref: http://wurstmeister.github.io/kafka-docker/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment