This section applies to MRS 3.2.0 or later.
To access Kafka Broker deployed on a private network from the Kafka client via the Internet, enable the Kafka private and public network traffic distribution function.
Parameter |
Description |
Remarks |
---|---|---|
enable.advertised.listener |
Whether to enable the advertised.listeners configuration. The default value is false. |
Set enable.advertised.listener to true. NOTE:
When you install the Kafka service, do not set this parameter to true. You can set this parameter to true only after broker instances and ZooKeeper are running properly. |
advertised.broker.id.ip.map |
IP address released by Kafka. This parameter is left blank by default. Format: Broker ID:IP. Multiple brokers can use the same IP address. If multiple mappings are configured, use commas (,) to separate them. |
Map the broker ID of each broker instance recorded in 2 to the IP address to which the broker instance to bound. For example, if there are three broker instances and one IP address, the broker IDs are 1, 2, and 3, and the IP address is 10.xxx.xxx.xxx, the configuration format is 1:10.xxx.xxx.xxx,2:10.xxx.xxx.xxx,3:10.xxx.xxx.xxx. |
advertised.broker.id.port.map |
Port released by Kafka. This parameter is left blank by default. Format: Broker ID:Port. Port indicates the port to be bound. This port is a custom port and must be available. If multiple mappings are configured, use commas (,) to separate them. |
Map the broker ID of each broker instance recorded in 2 to the port to which the broker instance to bound. For example, if there are three broker instances and three ports, the broker IDs are 1, 2, and 3, and the ports are 3307, 3308, and 3309, the configuration format is 1:3307,2:3308,3:3309. |
actual.broker.id.ip.map |
IP address bound to Kafka. This parameter is left blank by default. Format: Broker ID:IP. If multiple mappings are configured, use commas (,) to separate them. |
Map the broker ID of each broker instance recorded in 2 to the IP address to which the broker instance to bound. For example, if there are three broker instances and one IP address, the broker IDs are 1, 2, and 3, and the IP address is 10.xxx.xxx.xxx, the configuration format is 1:10.xxx.xxx.xxx,2:10.xxx.xxx.xxx,3:10.xxx.xxx.xxx. |
actual.broker.id.port.map |
Port bound to Kafka. This parameter is left blank by default. Format: Broker ID:Port. Port indicates the port to be bound. This port is a custom port and must be available. If multiple mappings are configured, use commas (,) to separate them. |
Map the broker ID of each broker instance recorded in 2 to the port to which the broker instance to bound. For example, if there are three broker instances and three ports, the broker IDs are 1, 2, and 3, and the ports are 3307, 3308, and 3309, the configuration format is 1:3307,2:3308,3:3309. |
In a cluster with Kerberos authentication enabled, after enable.advertised.listener is configured, the client supports only Kerberos authentication, but not PLAIN authentication.