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.

Automated install script — one command deploys Kafka in KRaft mode (no ZooKeeper) with a web UI, broker on port 9094 and dashboard on port 8240.
View on GitHub

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

PortPurpose
9094Kafka broker — external advertised listener for clients
8240Kafka web UI for topics, consumer groups, and messages
9092Internal PLAINTEXT listener — Docker network only, not exposed
9093KRaft controller quorum — Docker network only, not exposed

Overview

Why Use It

When You Need It

    Who Should Use It

      Real Use Cases

        Main Features

          How to Use After Installation

            Security Best Practices

              Ports and Firewall Notes

              Backup and Maintenance

                Common Mistakes

                  Troubleshooting

                    Alternatives

                    When Not to Use It

                    PrismaTechWork Professional Help

                      Contact Us

                      Frequently Asked Questions