Install and run Kafka on Windows in 20 minutes This guide walks you through installing Apache Kafka with ZooKeeper on Windows using WSL2 (Windows Subsystem for Linux). By the end, you’ll have a working single-node Kafka cluster for development. What you’ll learn:Documentation Index
Fetch the complete documentation index at: https://docs.conduktor.io/llms.txt
Use this file to discover all available pages before exploring further.
- How to set up WSL2 on Windows
- How to install Java 11 (required dependency)
- How to download and configure Kafka
- How to start ZooKeeper and Kafka
Installation overview
Step 1: Install WSL2
WSL2 provides a Linux environment on Windows without a virtual machine. Open PowerShell as Administrator and run:Step 2: Disable IPv6 on WSL2
WSL2 has a networking issue that prevents external programs from connecting to Kafka. Disable IPv6 to fix this:Step 3: Install Java JDK 11
In your WSL2 Ubuntu terminal:Step 4: Download and extract Kafka
Step 5: Start ZooKeeper
ZooKeeper has to be running before Kafka starts.Step 6: Start Kafka
Open a new WSL2 terminal window and run:localhost:9092.
Step 7: Configure PATH
Add Kafka binaries to your PATH:Frequently asked questions
Can I run Kafka directly on Windows without WSL2? Technically yes, but you will encounter issues. Kafka lacks support for certain Windows-specific behaviors, leading to problems when deleting topics or during log segment rotation. Can I use Windows Kafka binaries with WSL2 Kafka? Yes. You can download Kafka binaries on Windows and use commands likekafka-topics.bat against your cluster running in WSL2.
See it in practice with ConduktorConduktor Console can connect to your WSL2 Kafka cluster at
localhost:9092 from Windows for visual topic management.Next steps
- CLI tutorials to create topics and produce messages
- Windows KRaft installation for ZooKeeper-free setup
- Docker setup for alternative containerized setup