From 22787de48285a7e7059a06816c8a38b830d70a9c Mon Sep 17 00:00:00 2001 From: Gantigmaa Selenge <39860586+tinaselenge@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:08:27 +0100 Subject: [PATCH] MINOR; Update the properties files for controller with advertised.listeners (#16473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the documentation for the example properties files now that controllers are allowed to advertise their endpoints. Reviewers: José Armando García Sancio --- 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