api调用使用ecs公网ip
createTopic(); 失败
topicLists(); 失败
java.net.ConnectException: Connection timed out: no further information
检查情况:
zookeeper正常
kafka启动着
ecs安全组允许入方向9092
server配置,ip都为ecs私网ip
listeners=PLAINTEXT://172.19.7.34:9092
advertised.listeners=PLAINTEXT://172.19.7.34:9092
解决方法:
需要将advertised.listeners改成公网ip