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

Hello, I’m Vicky. I’m trying to run Kafka producer and at that moment I’m facing this issue.

Hi Vicky, welcome to the forum!

Please can you elaborate a little bit on the problem. What code are you running? Where is your Kafka broker located? Are you using Docker?