Skip to content

Instantly share code, notes, and snippets.

@maxgfr
Last active May 22, 2019 14:38
Show Gist options
  • Save maxgfr/698fdb13d22f23cc73239bd7ed625b37 to your computer and use it in GitHub Desktop.
Save maxgfr/698fdb13d22f23cc73239bd7ed625b37 to your computer and use it in GitHub Desktop.
Kafka on mac os X

Kafka on mac os X

brew install kafka
brew install zookeeper
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
kafka-server-start /usr/local/etc/kafka/server.properties
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-console-producer --broker-list localhost:9092 --topic test
kafka-console-consumer --bootstrap-server localhost:9092 --topic test --from-beginning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment