Yolean/kubernetes-kafka

Error connecting to node kafka-0.broker.kafka.svc.cluster.local:9092

maximumbreak opened this issue · 1 comments

Hi There,
I should access producer from local to expose (NodePort)
My command :

bin/kafka-console-producer.sh --broker-list {master-ip}:32400 \                                                                                                                          
--topic test

Result:

WARN [Producer clientId=console-producer] Error connecting to node kafka-0.broker.kafka.svc.cluster.local:9092 (id: 0 rack: null) (org.apache.kafka.clients.NetworkClient)
java.net.UnknownHostException: kafka-0.broker.kafka.svc.cluster.local

please help me,
Thank you

I have also experienced this issue.