Help Center/
MapReduce Service/
User Guide (Kuala Lumpur Region)/
FAQs/
Big Data Service Development/
How Do I Reset Kafka Data?
Updated on 2022-08-12 GMT+08:00
How Do I Reset Kafka Data?
You can reset Kafka data by deleting Kafka topics.
- Delete a topic: kafka-topics.sh --delete --zookeeper ZooKeeper Cluster service IP address:2181/kafka --topic topicname
- Query all topics: kafka-topics.sh --zookeeper ZooKeeper cluster service IP address:2181/kafka --list
After the deletion command is executed, empty topics will be deleted immediately. If a topic has data, the topic will be marked for deletion and will be deleted by Kafka later.
Parent topic: Big Data Service Development
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot