Install and run Kafka in KRaft mode on Linux in 10 minutes KRaft mode runs Kafka without ZooKeeper, simplifying deployment and reducing resource requirements. This guide walks you through setting up a single-node KRaft cluster. 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 install Java 11 (required dependency)
- How to generate a cluster ID and format storage
- How to start Kafka in KRaft mode
- How to configure your PATH for CLI access
Installation overview
Step 1: Install Java JDK 11
Kafka requires Java 11 or later. For Ubuntu/Debian:Step 2: Download and extract Kafka
Step 3: Generate cluster ID
KRaft clusters require a unique identifier:76BLQI7sT_ql1mBfKsOk9Q. Save this value.
Step 4: Format storage
Format the log directory using your cluster ID (replace<uuid> with your generated UUID):
log.dirs (default: /tmp/kraft-combined-logs).
Step 5: Start Kafka
localhost:9092 in KRaft mode.
Step 6: Configure PATH
Add Kafka binaries to your PATH for convenient access. Edit your shell configuration file (~/.bashrc or ~/.zshrc):
See it in practice with ConduktorConduktor Console can connect to your KRaft cluster at
localhost:9092 for visual topic management.Next steps
- CLI tutorials to create topics and produce messages
- KRaft mode concepts for deeper understanding
- Linux ZooKeeper installation for traditional setup