Skip to content

Latest commit

 

History

History
125 lines (95 loc) · 3.38 KB

Installation.md

File metadata and controls

125 lines (95 loc) · 3.38 KB

Installation

Docker

Docker - without Zookeeper

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/

Local - without Zookeeper (Kafka 3.0)

  1. Go to https://kafka.apache.org/downloads
  2. Binary download e.g. kafka_2.13-3.3.1.tgz
  3. Unpack
  4. 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
  5. Edit server.properties (for server-1):
    broker.id=<unique-broker-d>
    listeners=PLAINTEXT://localhost:<unique-port>
    log.dirs=/tmp/<unique-kafka-folder>
    auto.create.topics.enable=false
    
    e.g.
    broker.id=1
    listeners=PLAINTEXT://localhost:9093
    log.dirs=/tmp/kafka-logs-1
    auto.create.topics.enable=false
    
  6. 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

Local - with Zookeeper

For Kafka 3.0 Zookeeper is deprecated

  1. Go to https://kafka.apache.org/downloads
  2. Binary download e.g. kafka_2.13-3.3.1.tgz
  3. Unpack
  4. 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
  5. Run Zookeeper ./zookeeper-server-start.sh ../config/zookeeper.properties
  6. 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
  7. Run Kafka Broker ./kafka-server-start.sh ../config/server.properties

UI - Kouncil

https://hub.docker.com/r/consdata/kouncil