Apache Kafka 4.0, released in March 2025, removed ZooKeeper mode completely. A 4.x broker cannot read metadata from ZooKeeper, and there is no flag to turn it back on. If your cluster still runs with zookeeper.connect, the upgrade to 4.x is a two-stage project: migrate to KRaft on a 3.x release, then upgrade the KRaft cluster to 4.x.We moved three ZooKeeper-based clusters this way. This guide covers the path, each migration phase and where you can still roll back, how to size the KRaft controlle...
Kafka 4 removed ZooKeeper: migrating to KRaft through the 3.9 bridge release
Kafka 4.0 runs only in KRaft mode, so a ZooKeeper-based cluster cannot be upgraded in one step. The path through Kafka 3.9, each migration phase and its rollback point, controller quorum sizing, and the other 4.0 breaking changes to check first.
This is a paid story
Subscribe to read the full content, access all paid stories, and support the authors.
Add a label
Embed this post
<iframe src="https://www.hibug.me/kafka-4-kraft-zookeeper-removed-migration" width="700" height="420" frameborder="0" loading="lazy"></iframe>
I lead security operations for engineering organisations that are too big to ignore security and too small for a large security team. That means a bit of everything: vulnerability management, logging and detection, cloud configuration reviews, phishing response and incident handling. The posts here are practical: what to set up first, what to measure, which alerts are worth waking someone for, and what to do in the first hour of an incident. Where I describe incidents, details are changed, but the mistakes and the fixes are real patterns I have seen more than once.
Related Stories
Kafka consumer offline past retention: data deleted and auto.offset.reset skipped the rest
Kafka RecordTooLargeException: the five message size settings that must agree
Comments
0No comments yet. Be the first to comment!
Sign In to post a comment.