Last active
December 14, 2016 22:00
-
-
Save cji/3dd9e2eade8c78b2efae924e7ad5d019 to your computer and use it in GitHub Desktop.
Getting Started with a local Kafka Cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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