Kafka server configuration - listeners vs. advertised.listeners

前端 未结 3 1875
渐次进展
渐次进展 2020-11-29 20:12

To get Kafka running, you need to set some properties in config/server.properties file. There are two settings I don\'t understand.

Can somebody explai

3条回答
  •  醉话见心
    2020-11-29 21:01

    listeners is what the broker will use to create server sockets.

    advertised.listeners is what clients will use to connect to the brokers.

    The two settings can be different if you have a "complex" network setup (with things like public and private subnets and routing in between).

提交回复
热议问题