WARN Fetching topic metadata with correlation id 955 for topics [Set(test3)] from broker [BrokerEndP

生产消息

打开消费控制台查看消息命令----- ./bin/kafka-console-consumer.sh --zookeeper zk1:2181 --topic test1 --from-beginning

出现下列错误信息:


[2016-03-09 13:51:02,016] WARN Fetching topic metadata with correlation id 955 for topics [Set(test3)] from broker [BrokerEndPoint(1,brk1,9092)] failed (kafka.client.ClientUtils$)
java.nio.channels.ClosedChannelException
at kafka.network.BlockingChannel.send(BlockingChannel.scala:110)
at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:75)
at kafka.producer.SyncProducer.kafka$producer$SyncProducer$$doSend(SyncProducer.scala:74)
at kafka.producer.SyncProducer.send(SyncProducer.scala:119)
at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:59)
at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:94)
at kafka.consumer.ConsumerFetcherManager$LeaderFinderThread.doWork(ConsumerFetcherManager.scala:66)
at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:63)



解决办法:

查看集群各个broker服务器是否打开了防火墙------/etc/rc.d/init.d/iptables status

查看结果有一台服务打开了防火墙  ,关闭   ----- /etc/rc.d/init.d/iptables stop




你可能感兴趣的:(WARN Fetching topic metadata with correlation id 955 for topics [Set(test3)] from broker [BrokerEndP)