Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Kafka producer fails to update metadata

avatar
Explorer

Hi,

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

Regards,

Phaneendra

1 REPLY 1

avatar

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.