Kafka在抓取信息的时候报错
这是命令:
bin/kafka-console-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-consumer-18267-1, groupId=console-consumer-18267] Error while fetching metadata with correlation id 4 : {topic_start=LEADER_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)
更改server.propertie配置试试
advertised.listeners=PLAINTEXT://具体ip host.name=0.0.0.0
你的答案