Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename Kafka topic

I have created a topic and I'm not using it, but now I want to use it for another application. so instead of creating new one I want to rename and use it. is it possible?

like image 284
app Avatar asked Aug 09 '18 16:08

app


People also ask

How do you rename a topic?

Renaming a topic is not a supported operation. However, the latest Kafka versions now support topic deletion. So you can simply delete the old topic, and create a new one with the new name. If you had data you want to save, you can also use mirrormaker to copy data from the old topic to the new one.

Is Kafka topic name case sensitive?

The names of Kafka topics are case sensitive.


2 Answers

In straight and simple there is no concept of renaming topics in kafka

like image 87
Deadpool Avatar answered Oct 19 '22 18:10

Deadpool


Renaming a topic is not a supported operation. However, the latest Kafka versions now support topic deletion. So you can simply delete the old topic, and create a new one with the new name.

If you had data you want to save, you can also use mirrormaker to copy data from the old topic to the new one.

like image 7
mjuarez Avatar answered Oct 19 '22 18:10

mjuarez