Feedback from PR
diff --git a/34/ops.html b/34/ops.html
index 394fb5e..2458146 100644
--- a/34/ops.html
+++ b/34/ops.html
@@ -3609,9 +3609,7 @@
be done by adding the following log4j configuration to each KRaft controller's "log4j.properties" file.
</p>
- <pre>
- log4j.logger.org.apache.kafka.metadata.migration=TRACE
- </pre>
+ <pre>log4j.logger.org.apache.kafka.metadata.migration=TRACE</pre>
<p>
It may generally useful to enable DEBUG logging on the KRaft controllers and the ZK brokers during the migration.
@@ -3625,9 +3623,7 @@
of the brokers, or by running the following command.
</p>
- <pre>
- ./bin/zookeeper-shell.sh localhost:2181 get /cluster/id
- </pre>
+ <pre>./bin/zookeeper-shell.sh localhost:2181 get /cluster/id</pre>
<p>
The KRaft controller quorum should also be provisioned with the latest <code>metadata.version</code> of "3.4".
@@ -3640,21 +3636,20 @@
</p>
<pre>
- # Sample KRaft cluster controller.properties listening on 9093
- process.roles=controller
- node.id=3000
- controller.quorum.voters=3000@localhost:9093
- controller.listener.names=CONTROLLER
- listeners=CONTROLLER://:9093
+# Sample KRaft cluster controller.properties listening on 9093
+process.roles=controller
+node.id=3000
+controller.quorum.voters=3000@localhost:9093
+controller.listener.names=CONTROLLER
+listeners=CONTROLLER://:9093
- # Enable the migration
- zookeeper.metadata.migration.enable=true
+# Enable the migration
+zookeeper.metadata.migration.enable=true
- # ZooKeeper client configuration
- zookeeper.connect=localhost:2181
+# ZooKeeper client configuration
+zookeeper.connect=localhost:2181
- # Other configs ...
- </pre>
+# Other configs ...</pre>
<p><em>Note: The KRaft cluster <code>node.id</code> values must be different from any existing ZK broker <code>broker.id</code>.
In KRaft-mode, the brokers and controllers share the same Node ID namespace.</em></p>
@@ -3676,25 +3671,24 @@
<p>Here is a sample config for a broker that is ready for migration:</p>
<pre>
- # Sample ZK broker server.properties listening on 9092
- broker.id=0
- listeners=PLAINTEXT://:9092
- advertised.listeners=PLAINTEXT://localhost:9092
- listener.security.protocol.map=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
+# Sample ZK broker server.properties listening on 9092
+broker.id=0
+listeners=PLAINTEXT://:9092
+advertised.listeners=PLAINTEXT://localhost:9092
+listener.security.protocol.map=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
- # Set the IBP
- inter.broker.protocol.version=3.4
+# Set the IBP
+inter.broker.protocol.version=3.4
- # Enable the migration
- zookeeper.metadata.migration.enable=true
+# Enable the migration
+zookeeper.metadata.migration.enable=true
- # ZooKeeper client configuration
- zookeeper.connect=localhost:2181
+# ZooKeeper client configuration
+zookeeper.connect=localhost:2181
- # KRaft controller quorum configuration
- controller.quorum.voters=3000@localhost:9093
- controller.listener.names=CONTROLLER
- </pre>
+# KRaft controller quorum configuration
+controller.quorum.voters=3000@localhost:9093
+controller.listener.names=CONTROLLER</pre>
<p>
<em>Note: Once the final ZK broker has been restarted with the necessary configuration, the migration will automatically begin.</em>
@@ -3718,26 +3712,25 @@
</p>
<pre>
- # Sample KRaft broker server.properties listening on 9092
- process.roles=broker
- node.id=0
- listeners=PLAINTEXT://:9092
- advertised.listeners=PLAINTEXT://localhost:9092
- listener.security.protocol.map=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
+# Sample KRaft broker server.properties listening on 9092
+process.roles=broker
+node.id=0
+listeners=PLAINTEXT://:9092
+advertised.listeners=PLAINTEXT://localhost:9092
+listener.security.protocol.map=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
- # Don't set the IBP, KRaft uses "metadata.version" feature flag
- # inter.broker.protocol.version=3.4
+# Don't set the IBP, KRaft uses "metadata.version" feature flag
+# inter.broker.protocol.version=3.4
- # Remove the migration enabled flag
- # zookeeper.metadata.migration.enable=true
+# Remove the migration enabled flag
+# zookeeper.metadata.migration.enable=true
- # Remove ZooKeeper client configuration
- # zookeeper.connect=localhost:2181
+# Remove ZooKeeper client configuration
+# zookeeper.connect=localhost:2181
- # Keep the KRaft controller quorum configuration
- controller.quorum.voters=3000@localhost:9093
- controller.listener.names=CONTROLLER
- </pre>
+# Keep the KRaft controller quorum configuration
+controller.quorum.voters=3000@localhost:9093
+controller.listener.names=CONTROLLER</pre>
<p>
Each broker is restarted with a KRaft configuration until the entire cluster is running in KRaft mode.
@@ -3751,21 +3744,20 @@
</p>
<pre>
- # Sample KRaft cluster controller.properties listening on 9093
- process.roles=controller
- node.id=3000
- controller.quorum.voters=1@localhost:9093
- controller.listener.names=CONTROLLER
- listeners=CONTROLLER://:9093
+# Sample KRaft cluster controller.properties listening on 9093
+process.roles=controller
+node.id=3000
+controller.quorum.voters=1@localhost:9093
+controller.listener.names=CONTROLLER
+listeners=CONTROLLER://:9093
- # Disable the migration
- # zookeeper.metadata.migration.enable=true
+# Disable the migration
+# zookeeper.metadata.migration.enable=true
- # Remove ZooKeeper client configuration
- # zookeeper.connect=localhost:2181
+# Remove ZooKeeper client configuration
+# zookeeper.connect=localhost:2181
- # Other configs ...
- </pre>
+# Other configs ...</pre>
</script>