Video coming soon…
🗄️ Setup Apache Kafka — Event Streaming in KRaft Mode
Deploy Apache Kafka on Ubuntu with Docker — a distributed event streaming platform running in KRaft mode with no ZooKeeper, bundled with a web UI, broker on port 9094 and dashboard on port 8240.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/kafka/kafka-ubuntu.sh
chmod +x kafka-ubuntu.sh
./kafka-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/kafka/kafka-ubuntu.sh
2 Make it Executable
chmod +x kafka-ubuntu.sh
3 Run the Installer
./kafka-ubuntu.sh
4 Open the Web UI
http://your-server-ip:8240
Ports Used
| Port | Purpose |
|---|---|
| 9094 | Kafka broker — external advertised listener for clients |
| 8240 | Kafka web UI for topics, consumer groups, and messages |
| 9092 | Internal PLAINTEXT listener — Docker network only, not exposed |
| 9093 | KRaft controller quorum — Docker network only, not exposed |