Closed tanguynicolas closed 1 year ago
It looks like you are connecting with KMinion via Docker where as you connect with the shell script from localhost. You must understand the concept of advertised listeners in Kafka, this is not specific to KMinion. Basically the reported advertised listener address must be reachable from the container where kminion is running and this doesn't seem to be the case here.
I don't know what happened, but when I tried again today, without changing anything in my configuration, it worked. That reassures me too, I had understood the listeners in Kafka. ^^ Sorry for the inconvenience
Ok I find the real solution.
Do not put hostname (kafka) below when using multi networks, cause Kafka will resolve it with IP of its own interface in FIRST network (by alphabetic order)
# DON'T USE
KAFKA_CFG_LISTENERS: INSIDE://kafka:9092,OUTSIDE://kafka:9094,CONTROLLER://:9093
# USE
KAFKA_CFG_LISTENERS: INSIDE://:9092,OUTSIDE://:9094,CONTROLLER://:9093
So the problem isn't Kminion problem.
Hello,
I have a very simple Kafka configuration, but KMinion container fail to connect to it anytimes.
This command works:
kafka-topics.sh --version --bootstrap-server 127.0.0.1:9094
There is my Kafka configuration:
When I run
docker run --rm -p 8080:8080 --env KAFKA_BROKERS=kafka:9092 redpandadata/kminion:v2.2.3
I get:I don't understand why :/ Could you help me?
Thanks for your sources, TN