MINOR; Update the properties files for controller with advertised.listeners (#16473)

Update the documentation for the example properties files now that controllers are allowed to advertise their endpoints.

Reviewers: José Armando García Sancio <jsancio@apache.org>
This commit is contained in:
Gantigmaa Selenge 2024-07-03 22:08:27 +01:00 committed by GitHub
parent 9f7afafefe
commit 22787de482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,11 @@ controller.quorum.voters=1@localhost:9093
# listeners = PLAINTEXT://your.host.name:9092
listeners=CONTROLLER://:9093
# Listener name, hostname and port the controller will advertise to admin clients, broker nodes and controller nodes.
# Note that the only controller listeners are allowed here when `process.roles=controller`.
# If not set, it uses the value for "listeners".
advertised.listeners=CONTROLLER://localhost:9093
# A comma-separated list of the names of the listeners used by the controller.
# This is required if running in KRaft mode.
controller.listener.names=CONTROLLER

View File

@ -44,9 +44,9 @@ listeners=PLAINTEXT://:9092,CONTROLLER://:9093
# Name of listener used for communication between brokers.
inter.broker.listener.name=PLAINTEXT
# Listener name, hostname and port the broker will advertise to clients.
# Listener name, hostname and port the broker or the controller will advertise to clients.
# If not set, it uses the value for "listeners".
advertised.listeners=PLAINTEXT://localhost:9092
advertised.listeners=PLAINTEXT://localhost:9092,CONTROLLER://localhost:9093
# A comma-separated list of the names of the listeners used by the controller.
# If no explicit mapping set in `listener.security.protocol.map`, default will be using PLAINTEXT protocol