Timeout sending messages

0

Hey everyone.

I'm getting a timeout when trying to send messages:
ERROR Error when sending message to topic test with key: null, value: 4 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

I have properly setup the cluster (which has ACTIVE state), and created a couple of topics (which I can list properly as well) using a client machine created using the guide with its security group added to the security group of the cluster nodes. Somehow though, I can't send messages.

Can anyone please help me troubleshoot my issue?

Edited by: joaquinscript on Feb 27, 2019 2:35 PM

demandé il y a 5 ans373 vues
1 réponse
0

Found the error, I was using ZookeeperConnectString instead of BootstrapBrokerString in the arguments for the producer and consumer BrokerList

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions