无法从公众消费主题

问题描述

我在GCP云上设置了4节点kafka。但是当我尝试在本地Mac中运行以下命令时,出现以下错误

./bin/kafka-console-consumer.sh --bootstrap-server kafka1:9092,kafka2:9092,kafka3:9092,kafka4:9092 --topic datapipes-test-333.rdstest.rds_small --from-beginning
[2020-11-04 12:50:20,594] WARN [Consumer clientId=consumer-console-consumer-87286-1,groupId=console-consumer-87286] Connection to node 2147482643 (/10.45.0.21:9092) Could not be established. broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2020-11-04 12:51:35,768] WARN [Consumer clientId=consumer-console-consumer-87286-1,groupId=console-consumer-87286] Connection to node 1003 (/10.45.0.19:9092) Could not be established. broker may not be available. (org.apache.kafka.clients.NetworkClient)

但是当我运行以下命令时:

./bin/kafka-topics.sh --list --zookeeper kafka1:2181

我可以列出主题

__consumer_offsets
connect-configs
connect-offsets
connect-status
datapipes-test-100
datapipes-test-100.rdstest.customerdata
datapipes-test-101
datapipes-test-101.rdstest.rds_medium

我已经完成了以下基本故障排除工作

  1. 所有必需的端口都已打开,并且可以从本地进行telnet。 2.能够列出所有经纪人ID
  2. 集群状态也很好 4.kafka和zookeeper的所有节点都已建立。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)