Support Questions

Find answers, ask questions, and share your expertise

Kafka producer fails to update metadata

New Contributor


We have a custom Java code producing messages from file data. We are able to produce the messages but while writing them on to topic it is giving timeout error

java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

Has anyone faced similar issue earlier. Any guidance to get this fixed is highly appreciated




Hi @Phaneendra S that error message most usually means you have incorrectly configured your Producer and it is not actually managing to talk with the Kafka service. You should check both your application logs and the kafka service logs to see what the error is.
You could try connecting to the Kafka using your Parameters in NiFi, if it works you will know that your Producer code is at fault.