Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Bootstrap server error ECOMMERCE_NEW_ORDER

A mensagem fica se repetindo no intellij:

[kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Node may not be available. [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected [kafka-producer-network-thread | producer-1] INFO org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Node -1 disconnected. [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Node may not be available. [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected

tentei colocar localhost:9092 no server.config e o erro persiste.

4 respostas
solução!

Resolvi já.

Raphael Nascimento Viana, boa tarde. que mal pergunte qual foi a solução do problema?

Fala, Jeferson! No meu caso o producer estava rodando no Windows e o bootstrap-server no wsl, algum problema no bind de ip's não permitia o producer "enxergar" o bootstrap-server e dava esse erro. Eu rodei o producer dentro do wsl pra ambos ficarem na mesma rede e funcionou normalmente.

Boa, eu tive um problema parecido onde adicionei ao arquivo de properties o IP do WSL, resolveu também.