Skip to content

Instantly share code, notes, and snippets.

@ganny26
Last active December 8, 2020 09:32
Show Gist options
  • Save ganny26/2efb3a51c7bf9ccfe9118578fd547f7d to your computer and use it in GitHub Desktop.
Save ganny26/2efb3a51c7bf9ccfe9118578fd547f7d to your computer and use it in GitHub Desktop.
Kafka

run zookeeper

./windows/zookeeper-server-start.bat ../config/zookeeper.properties

run kafka

./kafka-server-start.bat ../../config/server.properties

run confluent kafka rest proxy

sh ./kafka-rest-start ../etc/kafka-rest/kafka-rest.properties

create a topic

./kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic xmt-360-topic

list all kafka topic

./kafka-topics.bat --list --zookeeper localhost:2181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment