This is an automated email from the ASF dual-hosted git repository. jsancio pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push: new 22787de4828 MINOR; Update the properties files for controller with advertised.listeners (#16473) 22787de4828 is described below commit 22787de48285a7e7059a06816c8a38b830d70a9c Author: Gantigmaa Selenge <39860586+tinasele...@users.noreply.github.com> AuthorDate: Wed Jul 3 22:08:27 2024 +0100 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 <jsan...@apache.org> --- config/kraft/controller.properties | 5 +++++ config/kraft/server.properties | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/kraft/controller.properties b/config/kraft/controller.properties index 9d152f78290..bc4cda107a9 100644 --- a/config/kraft/controller.properties +++ b/config/kraft/controller.properties @@ -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 diff --git a/config/kraft/server.properties b/config/kraft/server.properties index 6461c988d32..dfa9489cbc8 100644 --- a/config/kraft/server.properties +++ b/config/kraft/server.properties @@ -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