011. CLI. Topics. - MarkHuntDev/my-kafka-exercises GitHub Wiki
-
Start Zookeeper:
- $ zookeeper-server-start.sh config/zookeeper.properties
-
Start Kafka:
- $ kafka-server-start.sh config/server.properties
-
List topics:
- $ kafka-topics.sh --zookeeper 127.0.0.1:2181 --list
-
Create topic:
- $ kafka-topics.sh --zookeeper 127.0.0.1:2181 --topic <topic_name> --create --partitions <number_of_partitions> --replication-factor <number_of_replicas>
-
Delete topic:
- $ kafka-topics.sh --zookeeper 127.0.0.1:2181 --topic <topic_name> --delete
-
Topic info:
- $ kafka-topics.sh --zookeeper 127.0.0.1:2181 --topic <topic_name> --describe
⚠️ **GitHub.com Fallback** ⚠️