Compare two empty Kafka clusters
A sanity check: are two fresh clusters equal?

The recording shows kurkik kafka diff on the demo sandbox; its data differs from this example.
Shown here: one broker. Other broker setups are further down.
Command
Section titled “Command”kurkik kafka diff a b --configs --acls --groupsOutput
Section titled “Output”a vs bcluster MkU3OEVBNTcwNTJENDM2Qk
Notes - Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id. - Not compared: schemas. Add --schemas, or --all, to compare them.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 11 matchedExit code 0: no drift.
| Mark | Means |
|---|---|
~ |
both sides have it, but it differs |
! |
only the first side has it |
+ |
only the second side has it |
Other ways to give a side
Section titled “Other ways to give a side”| Compare | Command | Result |
|---|---|---|
| two clusters | kurkik kafka diff a b --configs --acls --groups |
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 11 matched |
| a document and a cluster | kurkik kafka diff a.yaml b --configs --acls --groups |
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 11 matched |
| two documents | kurkik kafka diff a.yaml b.yaml --configs --acls --groups |
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 11 matched |
Download the JSON report (-o json)
The documents compared
Section titled “The documents compared”a.yaml, 42 lines
asyncapi: 3.0.0info: title: a Apache Kafka API version: 1.0.0-SNAPSHOT description: "Generated by reading the a cluster. Cluster id: MkU3OEVBNTcwNTJENDM2Qk."servers: broker-1: host: a-kafka-1:9092 protocol: kafka protocolVersion: "4.4" x-kurkik: kafka: server: security: - security: PLAINTEXT securityProtocol: PLAINTEXT acl: [] groups: [] brokerConfiguration: advertised.listeners: "INTERNAL://kafka-1:19092,EXTERNAL://a-kafka-1:9092" authorizer.class.name: org.apache.kafka.metadata.authorizer.StandardAuthorizer broker.id: "1" controller.listener.names: CONTROLLER controller.quorum.voters: 1@kafka-1:9093 group.initial.rebalance.delay.ms: "0" inter.broker.listener.name: INTERNAL listener.security.protocol.map: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CONTROLLER:PLAINTEXT" listeners: "INTERNAL://0.0.0.0:19092,EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093" min.insync.replicas: "1" node.id: "1" offsets.topic.replication.factor: "1" process.roles: "broker,controller" transaction.state.log.min.isr: "1" transaction.state.log.replication.factor: "1" clientConfiguration: bootstrap.servers: a-kafka-1:9092 security.protocol: PLAINTEXT groupConfiguration: {} producerConfiguration: {} consumerConfiguration: {}channels: {}operations: {}b.yaml, 42 lines
asyncapi: 3.0.0info: title: b Apache Kafka API version: 1.0.0-SNAPSHOT description: "Generated by reading the b cluster. Cluster id: MkU3OEVBNTcwNTJENDM2Qk."servers: broker-1: host: b-kafka-1:9092 protocol: kafka protocolVersion: "4.4" x-kurkik: kafka: server: security: - security: PLAINTEXT securityProtocol: PLAINTEXT acl: [] groups: [] brokerConfiguration: advertised.listeners: "INTERNAL://kafka-1:19092,EXTERNAL://b-kafka-1:9092" authorizer.class.name: org.apache.kafka.metadata.authorizer.StandardAuthorizer broker.id: "1" controller.listener.names: CONTROLLER controller.quorum.voters: 1@kafka-1:9093 group.initial.rebalance.delay.ms: "0" inter.broker.listener.name: INTERNAL listener.security.protocol.map: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CONTROLLER:PLAINTEXT" listeners: "INTERNAL://0.0.0.0:19092,EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093" min.insync.replicas: "1" node.id: "1" offsets.topic.replication.factor: "1" process.roles: "broker,controller" transaction.state.log.min.isr: "1" transaction.state.log.replication.factor: "1" clientConfiguration: bootstrap.servers: b-kafka-1:9092 security.protocol: PLAINTEXT groupConfiguration: {} producerConfiguration: {} consumerConfiguration: {}channels: {}operations: {}How to build this setup yourself
Brokers
Cluster a
Cluster b
Compare
kurkik conn add kafka a --bootstrap a-kafka-1:9092 --registry-url http://registry-a:8080 --registry-vendor apicuriokurkik conn add kafka b --bootstrap b-kafka-1:9092 --registry-url http://registry-b:8080 --registry-vendor apicuriokurkik kafka export a --acls --groups --stdout > a.yamlkurkik kafka export b --acls --groups --stdout > b.yamlkurkik kafka diff a b --configs --acls --groups # cluster-vs-clusterkurkik kafka diff a.yaml b --configs --acls --groups # document-vs-clusterkurkik kafka diff a.yaml b.yaml --configs --acls --groups # document-vs-documentOther broker setups
Section titled “Other broker setups”Three brokers, alike
Section titled “Three brokers, alike”Same output.
How to build this setup yourself
Brokers
Cluster a
Cluster b
Compare
kurkik conn add kafka a --bootstrap a-kafka-1:9092,a-kafka-2:9092,a-kafka-3:9092 --registry-url http://registry-a:8080 --registry-vendor apicuriokurkik conn add kafka b --bootstrap b-kafka-1:9092,b-kafka-2:9092,b-kafka-3:9092 --registry-url http://registry-b:8080 --registry-vendor apicuriokurkik kafka export a --acls --groups --stdout > a.yamlkurkik kafka export b --acls --groups --stdout > b.yamlkurkik kafka diff a b --configs --acls --groups # cluster-vs-clusterkurkik kafka diff a.yaml b --configs --acls --groups # document-vs-clusterkurkik kafka diff a.yaml b.yaml --configs --acls --groups # document-vs-documentThree brokers that differ
Section titled “Three brokers that differ”Show the output
a vs bcluster MkU3OEVBNTcwNTJENDM2Qk
Notes - Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id. - Not compared: schemas. Add --schemas, or --all, to compare them.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 23 matchedHow to build this setup yourself
Brokers
Cluster a
Cluster b
Compare
kurkik conn add kafka a --bootstrap a-kafka-1:9092,a-kafka-2:9092,a-kafka-3:9092 --registry-url http://registry-a:8080 --registry-vendor apicuriokurkik conn add kafka b --bootstrap b-kafka-1:9092,b-kafka-2:9092,b-kafka-3:9092 --registry-url http://registry-b:8080 --registry-vendor apicuriokurkik kafka export a --acls --groups --stdout > a.yamlkurkik kafka export b --acls --groups --stdout > b.yamlkurkik kafka diff a b --configs --acls --groups # cluster-vs-clusterkurkik kafka diff a.yaml b --configs --acls --groups # document-vs-clusterkurkik kafka diff a.yaml b.yaml --configs --acls --groups # document-vs-documentAll flags: kurkik kafka diff · more Apache Kafka diff examples
Copyright © 2026 Pavel Bodiachevskii