Skip to content

Compare Kafka consumer groups between two clusters

A group on one side only, or reading something else? Compare with --groups.

Terminal recording of kurkik kafka diff

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.

Terminal window
kurkik kafka diff a b --groups --configs
a vs b
cluster MkU3OEVBNTcwNTJENDM2Qk
Groups
~ analytics topics - What it reads differs. (a: orders.created, b: customers.updated,orders.created)
~ audit consumer.heartbeat.interval.ms - consumer.heartbeat.interval.ms is set for the group on a and left at the default on b. (a: 6000, b: (default))
! billing groupId - Group billing is on a and not on b. (a: billing)
+ invoicing groupId - Group invoicing is on b and not on a. (b: invoicing)
~ notifier groupType - Its type differs. (a: classic, b: consumer)
~ shipping clientIds - Who is connected differs. (a: shipping-1, b: shipping-2)
Notes
- Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id.
- Not compared: ACLs, schemas. Add --acls --schemas, or --all, to compare them.
Drift: 4 changed · 1 unmanaged · 1 missing (drift) - 49 matched

Exit code 2: drift found, so a CI job can stop here.

Mark Means
~ both sides have it, but it differs
! only the first side has it
+ only the second side has it
Compare Command Result
two clusters kurkik kafka diff a b --groups --configs Drift: 4 changed · 1 unmanaged · 1 missing (drift) - 49 matched
a document and a cluster kurkik kafka diff a.yaml b --groups --configs Drift: 4 changed · 1 unmanaged · 1 missing (drift) - 49 matched
two documents kurkik kafka diff a.yaml b.yaml --groups --configs Drift: 4 changed · 1 unmanaged · 1 missing (drift) - 49 matched

Download the JSON report (-o json)

a.yaml, 270 lines
asyncapi: 3.0.0
info:
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:
- groupId: analytics
groupType: classic
state: STABLE
clientIds:
- analytics-1
topics:
- orders.created
configuration: {}
- groupId: audit
groupType: consumer
state: STABLE
clientIds:
- audit-1
topics:
- orders.created
configuration:
consumer.heartbeat.interval.ms: "6000"
- groupId: billing
groupType: classic
state: STABLE
clientIds:
- billing-1
topics:
- orders.created
- payments.settled
configuration: {}
- groupId: nightly-report
groupType: classic
state: EMPTY
clientIds: []
topics:
- orders.created
configuration: {}
- groupId: notifier
groupType: classic
state: STABLE
clientIds:
- notifier-1
topics:
- payments.settled
configuration: {}
- groupId: shipping
groupType: classic
state: STABLE
clientIds:
- shipping-1
topics:
- customers.updated
configuration: {}
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:
customers.updated:
address: customers.updated
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
topicConfiguration:
cleanup.policy:
- compact
x-kurkik:
kafka:
channel:
topic: customers.updated
partitions: 3
replicas: 1
topicConfiguration:
cleanup.policy: compact
orders.created:
address: orders.created
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
topicConfiguration:
retention.ms: 604800000
x-kurkik:
kafka:
channel:
topic: orders.created
partitions: 3
replicas: 1
topicConfiguration:
retention.ms: "604800000"
payments.settled:
address: payments.settled
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
x-kurkik:
kafka:
channel:
topic: payments.settled
partitions: 3
replicas: 1
topicConfiguration:
min.insync.replicas: "1"
retention.bytes: "10737418240"
operations:
receive_customers.updated:
action: receive
channel:
$ref: "#/channels/customers.updated"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- shipping
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- shipping-1
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- shipping
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- shipping-1
security: []
consumerConfiguration: {}
groupConfiguration: {}
receive_orders.created:
action: receive
channel:
$ref: "#/channels/orders.created"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- audit
- billing
- nightly-report
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- audit-1
- billing-1
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- audit
- billing
- nightly-report
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- audit-1
- billing-1
security: []
consumerConfiguration: {}
groupConfiguration: {}
receive_payments.settled:
action: receive
channel:
$ref: "#/channels/payments.settled"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- billing
- notifier
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- billing-1
- notifier-1
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- billing
- notifier
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- billing-1
- notifier-1
security: []
consumerConfiguration: {}
groupConfiguration: {}
send_customers.updated:
action: send
channel:
$ref: "#/channels/customers.updated"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}
send_orders.created:
action: send
channel:
$ref: "#/channels/orders.created"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}
send_payments.settled:
action: send
channel:
$ref: "#/channels/payments.settled"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}

Download a.yaml

b.yaml, 274 lines
asyncapi: 3.0.0
info:
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:
- groupId: analytics
groupType: classic
state: STABLE
clientIds:
- analytics-1
topics:
- customers.updated
- orders.created
configuration: {}
- groupId: audit
groupType: consumer
state: STABLE
clientIds:
- audit-1
topics:
- orders.created
configuration: {}
- groupId: invoicing
groupType: classic
state: STABLE
clientIds:
- invoicing-1
topics:
- orders.created
- payments.settled
configuration: {}
- groupId: nightly-report
groupType: classic
state: EMPTY
clientIds: []
topics:
- orders.created
configuration: {}
- groupId: notifier
groupType: consumer
state: STABLE
clientIds:
- notifier-1
topics:
- payments.settled
configuration: {}
- groupId: shipping
groupType: classic
state: STABLE
clientIds:
- shipping-2
topics:
- customers.updated
configuration: {}
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:
customers.updated:
address: customers.updated
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
topicConfiguration:
cleanup.policy:
- compact
x-kurkik:
kafka:
channel:
topic: customers.updated
partitions: 3
replicas: 1
topicConfiguration:
cleanup.policy: compact
orders.created:
address: orders.created
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
topicConfiguration:
retention.ms: 604800000
x-kurkik:
kafka:
channel:
topic: orders.created
partitions: 3
replicas: 1
topicConfiguration:
retention.ms: "604800000"
payments.settled:
address: payments.settled
bindings:
kafka:
bindingVersion: 0.5.0
partitions: 3
replicas: 1
x-kurkik:
kafka:
channel:
topic: payments.settled
partitions: 3
replicas: 1
topicConfiguration:
min.insync.replicas: "1"
retention.bytes: "10737418240"
operations:
receive_customers.updated:
action: receive
channel:
$ref: "#/channels/customers.updated"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- shipping
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- shipping-2
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- shipping
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- shipping-2
security: []
consumerConfiguration: {}
groupConfiguration: {}
receive_orders.created:
action: receive
channel:
$ref: "#/channels/orders.created"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- audit
- invoicing
- nightly-report
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- audit-1
- invoicing-1
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics
- audit
- invoicing
- nightly-report
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- analytics-1
- audit-1
- invoicing-1
security: []
consumerConfiguration: {}
groupConfiguration: {}
receive_payments.settled:
action: receive
channel:
$ref: "#/channels/payments.settled"
bindings:
kafka:
bindingVersion: 0.5.0
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- invoicing
- notifier
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- invoicing-1
- notifier-1
x-kurkik:
kafka:
operation:
groupId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- invoicing
- notifier
clientId:
$schema: http://json-schema.org/draft-07/schema#
enum:
- invoicing-1
- notifier-1
security: []
consumerConfiguration: {}
groupConfiguration: {}
send_customers.updated:
action: send
channel:
$ref: "#/channels/customers.updated"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}
send_orders.created:
action: send
channel:
$ref: "#/channels/orders.created"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}
send_payments.settled:
action: send
channel:
$ref: "#/channels/payments.settled"
x-kurkik:
kafka:
operation:
security: []
producerConfiguration: {}

Download b.yaml

How to build this setup yourself

Brokers

Cluster a

Terminal window
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 1 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic payments.settled --partitions 3 --replication-factor 1 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic customers.updated --partitions 3 --replication-factor 1 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group billing --consumer-property client.id=billing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group shipping --consumer-property client.id=shipping-1 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server a-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads
kafka-configs.sh --bootstrap-server a-kafka-1:9092 --entity-type groups --entity-name audit --alter --add-config consumer.heartbeat.interval.ms=6000

Cluster b

Terminal window
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 1 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic payments.settled --partitions 3 --replication-factor 1 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic customers.updated --partitions 3 --replication-factor 1 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group invoicing --consumer-property client.id=invoicing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created|customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group shipping --consumer-property client.id=shipping-2 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --consumer-property group.protocol=consumer --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server b-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads

Compare

Terminal window
kurkik conn add kafka a --bootstrap a-kafka-1:9092 --registry-url http://registry-a:8080 --registry-vendor apicurio
kurkik conn add kafka b --bootstrap b-kafka-1:9092 --registry-url http://registry-b:8080 --registry-vendor apicurio
kurkik kafka export a --acls --groups --stdout > a.yaml
kurkik kafka export b --acls --groups --stdout > b.yaml
kurkik kafka diff a b --groups --configs # cluster-vs-cluster
kurkik kafka diff a.yaml b --groups --configs # document-vs-cluster
kurkik kafka diff a.yaml b.yaml --groups --configs # document-vs-document

Same output.

How to build this setup yourself

Brokers

Cluster a

Terminal window
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 3 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic payments.settled --partitions 3 --replication-factor 3 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic customers.updated --partitions 3 --replication-factor 3 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group billing --consumer-property client.id=billing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group shipping --consumer-property client.id=shipping-1 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server a-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads
kafka-configs.sh --bootstrap-server a-kafka-1:9092 --entity-type groups --entity-name audit --alter --add-config consumer.heartbeat.interval.ms=6000

Cluster b

Terminal window
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 3 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic payments.settled --partitions 3 --replication-factor 3 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic customers.updated --partitions 3 --replication-factor 3 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group invoicing --consumer-property client.id=invoicing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created|customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group shipping --consumer-property client.id=shipping-2 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --consumer-property group.protocol=consumer --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server b-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads

Compare

Terminal window
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 apicurio
kurkik 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 apicurio
kurkik kafka export a --acls --groups --stdout > a.yaml
kurkik kafka export b --acls --groups --stdout > b.yaml
kurkik kafka diff a b --groups --configs # cluster-vs-cluster
kurkik kafka diff a.yaml b --groups --configs # document-vs-cluster
kurkik kafka diff a.yaml b.yaml --groups --configs # document-vs-document
Show the output
a vs b
cluster MkU3OEVBNTcwNTJENDM2Qk
Groups
~ analytics topics - What it reads differs. (a: orders.created, b: customers.updated,orders.created)
~ audit consumer.heartbeat.interval.ms - consumer.heartbeat.interval.ms is set for the group on a and left at the default on b. (a: 6000, b: (default))
! billing groupId - Group billing is on a and not on b. (a: billing)
+ invoicing groupId - Group invoicing is on b and not on a. (b: invoicing)
~ notifier groupType - Its type differs. (a: classic, b: consumer)
~ shipping clientIds - Who is connected differs. (a: shipping-1, b: shipping-2)
Notes
- Broker settings that name a machine were not compared: advertised.listeners, broker.id, controller.quorum.voters, listeners, node.id.
- Not compared: ACLs, schemas. Add --acls --schemas, or --all, to compare them.
Drift: 4 changed · 1 unmanaged · 1 missing (drift) - 61 matched

Download

How to build this setup yourself

Brokers

Cluster a

Terminal window
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 3 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic payments.settled --replica-assignment 2,2 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server a-kafka-1:9092 --create --topic customers.updated --replica-assignment 1:3 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group billing --consumer-property client.id=billing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group shipping --consumer-property client.id=shipping-1 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server a-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server a-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads
kafka-configs.sh --bootstrap-server a-kafka-1:9092 --entity-type groups --entity-name audit --alter --add-config consumer.heartbeat.interval.ms=6000

Cluster b

Terminal window
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic orders.created --partitions 3 --replication-factor 3 --config retention.ms=604800000
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic payments.settled --replica-assignment 2,2 --config min.insync.replicas=1 --config retention.bytes=10737418240
kafka-topics.sh --bootstrap-server b-kafka-1:9092 --create --topic customers.updated --replica-assignment 1:3 --config cleanup.policy=compact
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group invoicing --consumer-property client.id=invoicing-1 --include 'orders.created|payments.settled' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group analytics --consumer-property client.id=analytics-1 --include 'orders.created|customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group shipping --consumer-property client.id=shipping-2 --include 'customers.updated' & # stays connected while kurkik reads
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group notifier --consumer-property client.id=notifier-1 --consumer-property group.protocol=consumer --include 'payments.settled' & # stays connected while kurkik reads
kafka-consumer-groups.sh --bootstrap-server b-kafka-1:9092 --group nightly-report --topic orders.created:0 --reset-offsets --to-offset 0 --execute
kafka-console-consumer.sh --bootstrap-server b-kafka-1:9092 --group audit --consumer-property client.id=audit-1 --consumer-property group.protocol=consumer --include 'orders.created' & # stays connected while kurkik reads

Compare

Terminal window
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 apicurio
kurkik 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 apicurio
kurkik kafka export a --acls --groups --stdout > a.yaml
kurkik kafka export b --acls --groups --stdout > b.yaml
kurkik kafka diff a b --groups --configs # cluster-vs-cluster
kurkik kafka diff a.yaml b --groups --configs # document-vs-cluster
kurkik kafka diff a.yaml b.yaml --groups --configs # document-vs-document

All flags: kurkik kafka diff · more Apache Kafka diff examples