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

feita há 5 anos373 visualizações
1 Resposta
0

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

respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas