Install and run Kafka on Linux in 15 minutes This guide walks you through installing Apache Kafka with ZooKeeper on 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 install Java 11 (required dependency)
- How to download and configure Kafka
- How to start ZooKeeper and Kafka
- How to set up 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: Start ZooKeeper
ZooKeeper has to be running before Kafka starts. Open a terminal and run:Step 4: Start Kafka
Open a new terminal window and run:localhost:9092.
Step 5: Configure PATH
Add Kafka binaries to your PATH for convenient access. Edit your shell configuration file (~/.bashrc or ~/.zshrc):
Optional: Change data directories
By default, Kafka stores data in/tmp, which may be cleared on restart.
Change ZooKeeper data directory:
Edit ~/kafka_2.13-3.0.0/config/zookeeper.properties:
~/kafka_2.13-3.0.0/config/server.properties:
See it in practice with ConduktorConduktor Console can connect to your local Kafka cluster at
localhost:9092 for visual topic management.Next steps
- CLI tutorials to create topics and produce messages
- Linux KRaft installation for ZooKeeper-free setup
- Docker setup for containerized Kafka