https://hub.docker.com/r/bitnami/kafka
Debug env: - BITNAMI_DEBUG=true
1. Run (without UI):
docker compose -f ./docker/kraft.yaml up
Service | Endpoint |
---|---|
Kafka broker | http://localhost:9192 |
2. Run (with UI):
docker compose -f ./docker/kraft-kouncil.yaml up
Service | Endpoint |
---|---|
Kafka broker | http://localhost:9192 |
Kouncil UI | http://localhost:9080 |
3. Run (with UI and SSL):
docker compose -f ./docker/kraft-kouncil-ssl.yaml up
Service | Endpoint |
---|---|
Kafka broker | http://localhost:9192 (with SSL) |
Kouncil UI | http://localhost:9080 (without SSL) |
4. Run (with UI and three brokers):
docker compose -f ./docker/kraft-kouncil-cluster.yaml up
Service | Endpoint |
---|---|
Kafka broker-1 | http://localhost:9192 |
Kafka broker-2 | http://localhost:9292 |
Kafka broker-3 | http://localhost:9392 |
Kouncil UI | http://localhost:9080 |
5. Run (with UI via proxy):
docker compose -f ./docker/kraft-kouncil-traefik.yaml up
Service | Endpoint |
---|---|
Kafka broker | http://localhost:9192 |
Traefik Dashboard | http://localhost:9081/dashboard/#/ |
Kouncil UI | http://localhost:9082/kouncil-ui/ |
- Go to https://kafka.apache.org/downloads
- Binary download e.g.
kafka_2.13-3.3.1.tgz
- Unpack
- Go to
- (For Windows) Go to
kafka_2.13-3.3.1/bin/windows
- (For Linux) Go to
kafka_2.13-3.3.1/bin
- (For Windows) Go to
- Edit
server.properties
(for server-1):e.g.broker.id=<unique-broker-d> listeners=PLAINTEXT://localhost:<unique-port> log.dirs=/tmp/<unique-kafka-folder> auto.create.topics.enable=false
broker.id=1 listeners=PLAINTEXT://localhost:9093 log.dirs=/tmp/kafka-logs-1 auto.create.topics.enable=false
- Run Kafka Broker:
./kafka-server-start.sh ../config/server-1.properties ./kafka-server-start.sh ../config/server-2.properties ./kafka-server-start.sh ../config/server-3.properties
For Kafka 3.0 Zookeeper is deprecated
- Go to https://kafka.apache.org/downloads
- Binary download e.g.
kafka_2.13-3.3.1.tgz
- Unpack
- Go to
- (For Windows) Go to
kafka_2.13-3.3.1/bin/windows
- (For Linux) Go to
kafka_2.13-3.3.1/bin
- (For Windows) Go to
- Run Zookeeper
./zookeeper-server-start.sh ../config/zookeeper.properties
- Add properties to
server.properties
:listeners=PLAINTEXT://localhost:9192 # When you try to send a message to a topic that doesn't exist, then automatically create a topic auto.create.topics.enable=false
- Run Kafka Broker
./kafka-server-start.sh ../config/server.properties