Skip to content

Instantly share code, notes, and snippets.

@flinox
Created February 19, 2019 16:40
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 flinox/9fdfeffb348af6a9e38e551e67127888 to your computer and use it in GitHub Desktop.
Save flinox/9fdfeffb348af6a9e38e551e67127888 to your computer and use it in GitHub Desktop.
Kafka: To create a topic kafka
# partitions, how many files to store messages of topics
# replication-factor, how many copies of topics must store ( Ex.: number of nodes )
kafka-topics --zookeeper <zookeeper>:2181 --create --topic <topic-name> --partitions 3 --replication-factor 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment