Switching Kafka from Kraft to Zookeeper

586 Views Asked by At

I have a recent Kafka cluster which uses Kraft. I am facing some problems with it and it is possibly due to use of Kraft. I wish to switch to Zookeeper without losing data. Downtime is okay. How do I go about it?

1

There are 1 best solutions below

0
Mickael Maison On

I'm afraid there isn't a documented process to downgrade a cluster from KRaft to ZooKeeper.

If you've found an issue with KRaft, you should report it to the Kafka project via a Jira ticket so it can get fixed.

Assuming your KRaft cluster is somewhat functional, a way to preserve your data is to create a new cluster (running ZooKeeper) and use a tool like MirrorMaker to migrate your data.