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

gefragt vor 5 Jahren373 Aufrufe
1 Antwort
0

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

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen