邮件传输一段时间后,Kafka-Broker不可用

时间:2019-02-24 22:33:33

标签: apache-kafka

在_consumer_offset-49之后无法建立到节点1的连接, 我无法解决该问题,直到_consumer_offset-49消费者可以获取消息,但在offset-49之后,它显示警告消息,即无法建立到节点1的连接,经纪人可能不可用。

C:\kafka_2.11-2.0.0>.\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test1
>hi
>hello
>hey
>whatsupp??
>how are u
>[2019-02-25 03:53:14,876] WARN [Producer clientId=console-producer] Connection to node 1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-02-25 03:53:15,982] WARN [Producer clientId=console-producer] Connection to node 1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2019-02-25 03:53:17,240] WARN [Producer clientId=console-producer] Connection to node 1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

1 个答案:

答案 0 :(得分:0)

我解决了这个问题,我只是将Java版本更改为Java-1.8-181,并且可以正常工作。