- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to revert topic deletion
- Labels:
-
Apache Ambari
-
Apache Hadoop
-
Apache Kafka
Created ‎12-03-2017 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
just in case we delete the wrong topic as
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper hdpmaster01:2181 --delete --topic gtom.poli.pri.proc Topic gtom.poli.pri.procis already marked for deletion
and now we want to revert it
what are the steps to revert topic deletion?
all folders topics as the following are still exists under /var/kafka/kafka-logs
gtom.poli.pri.procis-23 gtom.poli.pri.procis-45 gtom.poli.pri.procis-34
.
.
Created ‎12-03-2017 02:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wק can abort the deletion by running the following command in zookeeper:
rmr /admin/delete_topics/gtom.poli.pri.procis
Note that this will only prevent the deletion to proceed if it has not already started. If anything has already been deleted, it's gone
Created ‎12-03-2017 02:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wק can abort the deletion by running the following command in zookeeper:
rmr /admin/delete_topics/gtom.poli.pri.procis
Note that this will only prevent the deletion to proceed if it has not already started. If anything has already been deleted, it's gone
