使用Java/Kotlin等外部消费者无法消费Kafka消息

问题

有一Kafka集群,在集群内机器上生产消费消息均正常,但是使用外部机器(未部署Kafka)无法消费。

解决

在Kafka配置server.properties中加入字段:

port=9092
advertised.host.name=192.168.226.10
Author: SinLapis
Link: http://sinlapis.github.io/2020/01/14/使用Java-Kotlin等外部消费者无法消费Kafka消息/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.