kafka开始抓取消息报错

union 发表于: 2024-05-16   最后更新时间: 2024-06-20 14:04:50   232 游览

Kafka在抓取信息的时候报错

这是命令:

bin/kafkakafka-consoleconsole-consumer.sh --bootstrap-server hadoop01:9092 --from-beginning --topic topic_start

报错信息:

[2024-05-15 23:53:54,112] WARN [Consumer clientId=consumer-console-consumer-18267-1, groupId=console-consumer-18267] Error while fetching metadata with correlation id 2 : {topic_start=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2024-05-15 23:53:54,371] WARN [Consumer clientId=consumer-console-consumerconsumer-18267-1, groupId=consolesole-consumer-18267] Error while fetching metadataror while] Error while fetching metadata with correlation] Error while fetching metadata with correlation id 4 : {topic_start=LEADER_NOT_AVAILABLELEADER_NOT_AVAILABLELEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2024-05-15 23:53:54,505] WARN [Consumer clientId=consumer-console-consumer-18267-1, groupId=console-consumer-18267] Error while fetching metadata with correlation id 6 : {topic_start=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
发表于 2024-05-16
添加评论

更改server.propertie配置试试

advertised.listeners=PLAINTEXT://具体ip
host.name=0.0.0.0
你的答案

查看kafka相关的其他问题或提一个您自己的问题