Closed justpolidor closed 4 years ago
Could you please clarify what code is throwing this exception? Is it deployed as a service as well?
I too have the same issue. Below is the code and error received. Have masked my providername.
seq 10000 | kafka-console-producer \
--topic example --broker-list kafka.providername:9092 \ --producer.config kafka.properties
[2019-11-11 00:37:31,563] WARN Couldn't resolve server kafka.providername:9092 from bootstrap.servers as DNS resolution failed for kafka.providername (org.apache.kafka.clients.ClientUtils)
org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.
If you're not able to simply ping kafka.providername
from where you run the command, it won't work
The containers work fine, but you must configure your own network appropriately
Thank you. I did a quick nslookup and it confirmed the same. I am running these confluent containers in an AKS cluster and an addition to my Azure DNS config sould solve the issue. I will let you know if that worked out.
C:\Users\Nithin.Prasad>nslookup kafka.providername DNS request timed out. timeout was 2 seconds. Server: UnKnown Address: 0.0.0.0
DNS request timed out. timeout was 2 seconds.
Hi all,
sorry for my late reply. My problem was related to misconfigured network settings on K8S. Now it is working.
Thanks
@justpolidor : Can you please share the resolution steps you took? Thanks.
@iNithinPrasad Have you got the resolution ? I am trying to install confluent schema registry on AKS through confluent helm chart and facing same issue.
@anishprobable : Tried adding a DNS entry but it still did not work. I downloaded the docker image of confluent and ran it on a VM. Atleast got my app running for a prototype.
@iNithinPrasad I also got it running. Noticed that I was giving an incorrect service name instead of actual one. When I changed the service name in publish/consume command, everything worked fine.
Hi all,
sorry for my late reply. My problem was related to misconfigured network settings on K8S. Now it is working.
Thanks
hello, I have the same problem. Could you tell me your misconfigured network settings on K8S
?
My Kafka pods are getting crashed with same DNS issue in AKS
Hi @justpolidor did you resolve the issue, I am facing the same errors on my kafka running on GKE as wel, I checked my pods and services seems fine to me. how did you resolve your issue. please share your experience once. Thanks
When using the kafka headless service into the kafka advertised listerners , I have:
Kafka Image version: 5.1.0 and the statefulset.yaml/service.yaml is the same as in the repo