NOTE
Kafka Installation and Local Setup
A version-neutral Kafka local setup guide that distinguishes modern KRaft deployments from historical ZooKeeper-based instructions.
This is a historical learning note and may contain outdated or incomplete understanding.
1. Use a Current Supported Kafka Release
Kafka installation procedures changed substantially with the move from ZooKeeper-based metadata to KRaft.
For a new local environment, follow the setup bundled with the exact Kafka release you are running and use KRaft unless you are intentionally studying a historical ZooKeeper deployment.
2. Local Development Options
Typical choices are:
- Kafka’s distribution scripts;
- containers / Docker Compose;
- a managed Kafka-compatible development environment.
Pin explicit versions so client/broker behavior is reproducible.
3. Minimum Verification
After starting the broker/controller configuration:
- create a test topic;
- publish several records;
- consume them from a new consumer group;
- inspect topic/partition metadata;
- restart a broker and verify expected persistence/recovery.
4. Production Concerns
A production cluster additionally needs deliberate choices for:
- replication factor and ISR policy;
- storage layout and disk capacity;
- authentication/authorization/TLS;
- listener/advertised-listener networking;
- retention/compaction;
- monitoring and alerting;
- controller quorum placement;
- rolling upgrades.
Historical shell commands tied to one Kafka/ZooKeeper version should not be treated as permanent architecture.