advertised.listeners — Kafka Broker Configuration
Specifies the listener addresses that the Kafka brokers will advertise to clients and other brokers. The config is useful where the actual listener configuration listeners does not represent the addresses that clients should use to connect, such as in cloud environments
Description
Specifies the listener addresses that the Kafka brokers will advertise to clients and other brokers. The config is useful where the actual listener configuration listeners does not represent the addresses that clients should use to connect, such as in cloud environments. The addresses are published to and managed by the controller, the brokers pull these data from the controller as needed. In IaaS environments, this may need to be different from the interface to which the broker binds. If this is not set, the value for listeners will be used. Unlike listeners, it is not valid to advertise the 0.0.0.0 meta-address.Also unlike listeners, there can be duplicated ports in this property, so that one listener can be configured to advertise another listener's address. This can be useful in some cases where external load balancers are used.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 0.9.0 | null |
| Broker | 0.10.0 | null |
| Broker | 0.10.1 | null |
| Broker | 0.10.2 | null |
| Broker | 0.11.0 | null |
| Broker | 1.0 | null |
| Broker | 1.1 | null |
| Broker | 2.0 | null |
| Broker | 2.1 | null |
| Broker | 2.2 | null |
| Broker | 2.3 | null |
| Broker | 2.4 | null |
| Broker | 2.5 | null |
| Broker | 2.6 | null |
| Broker | 2.7 | null |
| Broker | 2.8 | null |
| Broker | 3.0 | null |
| Broker | 3.1 | null |
| Broker | 3.2 | null |
| Broker | 3.3 | null |
| Broker | 3.4 | null |
| Broker | 3.5 | null |
| Broker | 3.6 | null |
| Broker | 3.7 | null |
| Broker | 3.8 | null |
| Broker | 3.9 | null |
| Broker | 4.0 | null |
| Broker | 4.1 | null |
| Broker | 4.2 | null |
| Broker | 4.3 | null |
| Broker | 4.4 | null |