十万火急,求助
我kafka的broker启动正常,zookeeper也没问题,但是使用producer发送消息的时候报错了
奇葩的是,我之前的服务器上的kafka也是同样的参数配置,都可以正常使用的
[root@newkafka1 ~]# /root/kafka1/bin/kafka-console-producer.sh -broker-list server1:9092 -topic newkafka1
>11111
[2017-10-20 16:58:45,627] ERROR Error when sending message to topic newkafka1 with key: null, value: 5 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
>[2017-10-20 16:59:52,902] WARN Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
我kafka的broker启动正常,zookeeper也没问题,但是使用producer发送消息的时候报错了
奇葩的是,我之前的服务器上的kafka也是同样的参数配置,都可以正常使用的
[root@newkafka1 ~]# /root/kafka1/bin/kafka-console-producer.sh -broker-list server1:9092 -topic newkafka1
>11111
[2017-10-20 16:58:45,627] ERROR Error when sending message to topic newkafka1 with key: null, value: 5 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
>[2017-10-20 16:59:52,902] WARN Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)