Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

how to revert topic deletion

avatar

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

.

.

Michael-Bronson
1 ACCEPTED SOLUTION

avatar

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

Michael-Bronson

View solution in original post

1 REPLY 1

avatar

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

Michael-Bronson