0
votes

I am trying to create a Kafka producer from command prompt using below command and getting this error message. This was working fine on my laptop but failing when I tried the same on a virtual machine. Any help will be greatly appreciated.

*C:\kafka_2.12-0.10.2.1\bin\windows>kafka-console-producer.bat --broker-list localhost:9092 --topic test

[2020-10-31 10:53:55,832] WARN [Producer clientId=console-producer] Bootstrap broker vagrant-10:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)*

1

1 Answers

0
votes

Your Kafka VM has advertised.listeners including vagrant-10:9092

Your host likely cannot resolve this DNS name

Fix your listeners configuration