Get your first Kafka cluster running in 10 minutes
This section guides you through setting up Apache Kafka for development and learning. Choose from multiple installation options based on your operating system and preferences.
What you’ll learn:
- How to set up a Kafka cluster for development
- Different installation methods and their trade-offs
- How to verify your Kafka installation
Prerequisites:
- Basic command line knowledge
- Java 11+ installed (for local installations)
- Docker installed (for container-based setup)
Choose your setup method
Installation options
| Method | Best for | Time | Requirements |
|---|
| Docker Compose | Cross-platform, version switching | 5 min | Docker |
| Mac native | macOS development | 15 min | Java 11 |
| Mac Homebrew | Quick Mac setup | 10 min | Homebrew |
| Linux native | Linux development | 15 min | Java 11 |
| Windows WSL2 | Windows development | 20 min | WSL2, Java 11 |
Which method should I choose?For most users, Docker Compose is the best choice. It works on all operating systems, makes version switching straightforward, and keeps your system clean. Use native installation if you need direct access to Kafka binaries or prefer not to use Docker.
ZooKeeper vs KRaft mode
Kafka traditionally requires ZooKeeper for cluster coordination. Starting with Kafka 2.8, KRaft mode allows Kafka to run without ZooKeeper.
| Mode | Status | Recommendation |
|---|
| ZooKeeper | Stable, production-ready | Use for learning and production |
| KRaft | Production-ready (Kafka 3.3+) | Use for simplified deployments |
KRaft installation guides:
See it in practice with ConduktorConduktor Console provides a visual interface for connecting to and managing your Kafka clusters once they’re running.
Next steps