-
I'm trying to connect Kafka-ui to a Kafka cluster that is running locally on my machine, NOT via a Docker container. It will connect fine to other clusters that I am monitoring, but not to my local cluster. No matter what I try it reports the local cluster as offline. In my Kafka config/server.properties I have the following entries: I'm currently using the following docker-compose file: I see the following in the log output: kafka-ui_1 | org.apache.kafka.common.errors.TimeoutException: Call(callName=listNodes, deadlineMs=1636563747774, tries=1, nextAllowedTryMs=1636563747875) timed out at 1636563747775 after 1 attempt(s) kafka-ui_1 | Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: listNodes As you can see, I can connect to other clusters on my network, just not my local cluster. I've tried replacing host.docker.internal with my the local IP address of my machine and the IP address assigned by my VPN, and receive the same problem. Is there some other configuration that I'm missing? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 9 replies
-
Hello there GloWorm0! 👋 Thank you and congratulations 🎉 for opening your very first issue in this project! 💖 In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀 |
Beta Was this translation helpful? Give feedback.
-
Hey, so, you’re running kafka-ui in a container, but kafka itself is being run on bare metal. Is that right?
… On 10 Nov 2021, at 20:13, github-actions[bot] ***@***.***> wrote:
Hello there GloWorm0! 👋
Thank you and congratulations 🎉 for opening your very first issue in this project! 💖
In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Yes, that is correct. |
Beta Was this translation helpful? Give feedback.
-
@GloWorm0 |
Beta Was this translation helpful? Give feedback.
-
I'm running on macOS (10.15.7). I'm not sure I understand. I just tried to use it when setting the environment variables for the container. So instead of |
Beta Was this translation helpful? Give feedback.
-
It's not just that.
Secondly, your |
Beta Was this translation helpful? Give feedback.
-
I had tried the extra hosts at one point and it didn't help, but I will try again, perhaps I added it incorrectly. I'm relatively new to using Docker. My Is I'll try 'extra-hosts' again and see if I added it incorrectly the first time I tried. |
Beta Was this translation helpful? Give feedback.
-
I just tried that setup and it worked for me.
|
Beta Was this translation helpful? Give feedback.
-
Adding I'm sure it's something with my setup, but have no idea what it could be. Kafka is up and running and accessible, just not from within Docker. I've run other simpler tests with containers not involving Kafka and can use I'll have to see if I can get another container to interact with my local Kafka. |
Beta Was this translation helpful? Give feedback.
-
I'd also try to run a 'fair' instance of kafka on bare metal to try that thing out. I suppose the trick might be about |
Beta Was this translation helpful? Give feedback.
-
OK, I figured it out. In my Kafka Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
You're welcome :) I'll convert this to a discussion to make it easily discoverable for others. |
Beta Was this translation helpful? Give feedback.
-
Hmm having the same problem, tried updating advertised.listeners=PLAINTEXT://localhost:9092 with my IP, and still nothing. Can you please explain explicitly what needs doing for a noob? |
Beta Was this translation helpful? Give feedback.
-
Hey,Everyone I am trying to connect to my local kafka cluster but it won't connect. I tried all the above steps that was discussed in this thread but it still won't connect. Can anyone please help? This is how my compose.yaml file looks: version: '3.7'
Am I missing anything in this? Also, in service.properties file, I've added my machine IP in advertised.listeners. |
Beta Was this translation helpful? Give feedback.
OK, I figured it out.
In my Kafka
server.properties
I hadadvertised.listeners=PLAINTEXT://localhost:9092
. This only allow access vialocalhost
. Once I changed it to my machine's IP address everything worked fine.Thanks for the help.