0

I have set up Kafka on my server and it is running:

kafka.service
     Loaded: loaded (/etc/systemd/system/kafka.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-09-13 13:24:47 CEST; 20min ago
   Main PID: 5057 (sh)
      Tasks: 80 (limit: 76840)
     Memory: 397.7M

I can add Topics and Messages via the console and also consume them.

I am running this Docker container: https://hub.docker.com/r/provectuslabs/kafka-ui

The Dashboard is available through my URL but the Cluster is not connected. I get the following error:

Connection to node -1 (/127.0.0.1:9092) could not be established. Broker may not be available.

I am not sure what to make of this. What exactly did I configure wrong?

NDDT
  • 445
  • 1
  • 10
  • 27
  • `127.0.0.1` refers to the container itself, not Kafka. – OneCricketeer Sep 13 '22 at 19:26
  • 1
    If you are running UI from docker compose. You need to add network_mode: host so docker can see your Kafka. Without this localhost is pointing to docker host not a laptop localhost – Levijatanu Oct 20 '22 at 10:25

0 Answers0