Skip to content

Instantly share code, notes, and snippets.

@vikasbajaj
Last active June 22, 2021 03:14
Show Gist options
  • Save vikasbajaj/01a8fd9b63b5f21cf66921aa8d4655d3 to your computer and use it in GitHub Desktop.
Save vikasbajaj/01a8fd9b63b5f21cf66921aa8d4655d3 to your computer and use it in GitHub Desktop.
zookeeper-server-start.sh config/zookeeper.properties
kafka-server-start.sh config/server.properties
kafka-topics.sh --bootstrap-server localhost:9092 --list
kafka-topics.sh --bootstrap-server localhost:9092 --topic test-topic --create --partitions 3 --replication-factor 1
kafka-topics.sh --bootstrap-server localhost:9092 --topic test-topic --describe
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test-topic --from-beginning --group group-1
kafka-console-producer.sh --bootstrap-server localhost:9092 --topic test-topic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment