Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Created December 25, 2018 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgadiraju/51f604ce442165a31b8d44ee01737a9b to your computer and use it in GitHub Desktop.
Save dgadiraju/51f604ce442165a31b8d44ee01737a9b to your computer and use it in GitHub Desktop.
kafka-topics \
--zookeeper bigdataserver-2:2181,bigdataserver-3:2181,bigdataserver-4:2181 \
--create \
--topic testing \
--replication-factor 2 \
--partitions 3
kafka-console-producer \
--broker-list bigdataserver-5:9092,bigdataserver-6:9092 \
--topic testing
kafka-console-consumer \
--bootstrap-server bigdataserver-5:9092,bigdataserver-6:9092 \
--topic testing \
--from-beginning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment