Compare only Pulsar sinks
Ask about sinks alone with --connectors-sink.

The recording shows kurkik pulsar diff on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik pulsar diff a b --connectors-sinkOutput
Section titled “Output”a vs b
Functions, sources and sinks ! sink shop/orders/audit-log sink - The sink shop/orders/audit-log runs on a and not on b. (a: shop/orders/audit-log)
Notes - Not compared: ACLs, consumers, schemas, functions, sources, configuration. Add --acls --consumers --schemas --functions --connectors-source --configs, or --all, to compare them.
Drift: 0 changed · 0 unmanaged · 1 missing (drift) - 10 matched
exit 2Exit 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 |
Other ways to give a side
Section titled “Other ways to give a side”| Compare | Command | Result |
|---|---|---|
| two clusters | kurkik pulsar diff a b --connectors-sink |
Drift: 0 changed · 0 unmanaged · 1 missing (drift) - 10 matched |
| a document and a cluster | kurkik pulsar diff a.yaml b --connectors-sink |
Drift: 0 changed · 0 unmanaged · 1 missing (drift) - 10 matched |
| two documents | kurkik pulsar diff a.yaml b.yaml --connectors-sink |
Drift: 0 changed · 0 unmanaged · 1 missing (drift) - 10 matched |
Download the JSON report (-o json)
The documents compared
Section titled “The documents compared”a.yaml, 273 lines
asyncapi: 3.0.0info: title: a Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of a (http://pulsar-a:8080).servers: standalone: host: pulsar-a:6650 protocol: pulsar protocolVersion: "4.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 tenant: shop x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-a:8080 schemaRegistryVendor: pulsar namespacePolicies: public/default: schema-autoupdate: "on" shop/orders: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone - tenant: shop adminRoles: - shop-admin allowedClusters: - standalone security: - security: NONE tls: false acl: [] consumers: - subscription: audit-log type: Shared topics: - persistent://shop/orders/paid processor: sink shop/orders/audit-log producers: [] functions: [] sources: - tenant: shop namespace: orders name: ticks className: com.github.pakisan.kurkik.pulsar.fixtures.Ticks output: persistent://shop/orders/ticks parallelism: 1 processingGuarantees: ATLEAST_ONCE channels: - $ref: "#/channels/persistent-shop-orders-ticks" roles: [] sinks: - tenant: shop namespace: orders name: audit-log className: com.github.pakisan.kurkik.pulsar.fixtures.AuditLog inputs: - persistent://shop/orders/paid subscriptionName: audit-log parallelism: 1 processingGuarantees: ATLEAST_ONCE channels: - $ref: "#/channels/persistent-shop-orders-paid" roles: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" clusterName: standalone enablePackagesManagement: "true" forceDeleteNamespaceAllowed: "true" functionsWorkerEnablePackageManagement: "true" isRunningStandalone: "true" loadBalancerEnabled: "false" loadManagerClassName: org.apache.pulsar.broker.loadbalance.NoopLoadManager managedLedgerCacheEvictionFrequency: "100.0" managedLedgerDefaultAckQuorum: "1" managedLedgerDefaultEnsembleSize: "1" managedLedgerDefaultMarkDeleteRateLimit: "0.1" managedLedgerDefaultWriteQuorum: "1" metadataStoreUrl: rocksdb:///pulsar/data/metadata packagesManagementStorageProvider: org.apache.pulsar.packages.management.storage.filesystem.FileSystemPackagesStorageProvider statusFilePath: /usr/local/apache/htdocs topicPublisherThrottlingTickTimeMillis: "2" webSocketServiceEnabled: "true" clientConfiguration: serviceUrl: pulsar://pulsar-a:6650 webServiceUrl: http://pulsar-a:8080 producerConfiguration: {} consumerConfiguration: {}channels: persistent-shop-orders-created: address: persistent://shop/orders/created bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/created tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-paid: address: persistent://shop/orders/paid messages: persistent-shop-orders-paid: payload: type: string name: persistent-shop-orders-paid title: persistent://shop/orders/paid summary: "Schema read from Pulsar's own registry: STRING, version 0." x-kurkik: pulsar: message: schemaType: STRING schemaVersion: 0 schemaIdLocation: metadata schemaLookupStrategy: topic schemaCompatibility: FULL key: type: string bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/paid tenant: shop namespace: orders persistence: persistent partitions: 2 geo-replication: - standalone topicConfiguration: partitions: 2 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-ticks: address: persistent://shop/orders/ticks messages: persistent-shop-orders-ticks: payload: type: string name: persistent-shop-orders-ticks title: persistent://shop/orders/ticks summary: "Schema read from Pulsar's own registry: STRING, version 0." x-kurkik: pulsar: message: schemaType: STRING schemaVersion: 0 schemaIdLocation: metadata schemaLookupStrategy: topic schemaCompatibility: FULL key: type: string bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/ticks tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on"operations: receive_persistent-shop-orders-created: action: receive channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-paid: action: receive channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: groupId: type: string enum: - audit-log security: [] processors: - type: sink name: shop/orders/audit-log server: standalone consumerConfiguration: {} receive_persistent-shop-orders-ticks: action: receive channel: $ref: "#/channels/persistent-shop-orders-ticks" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} send_persistent-shop-orders-created: action: send channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-paid: action: send channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-ticks: action: send channel: $ref: "#/channels/persistent-shop-orders-ticks" x-kurkik: pulsar: operation: security: [] processors: - type: source name: shop/orders/ticks server: standalone producerConfiguration: {}b.yaml, 200 lines
asyncapi: 3.0.0info: title: b Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of b (http://pulsar-b:8080).servers: standalone: host: pulsar-b:6650 protocol: pulsar protocolVersion: "4.0" description: Apache Pulsar cluster standalone. bindings: pulsar: bindingVersion: 0.1.0 tenant: shop x-kurkik: pulsar: server: cluster: standalone brokers: - localhost:8080 schemaRegistryUrl: http://pulsar-b:8080 schemaRegistryVendor: pulsar namespacePolicies: public/default: schema-autoupdate: "on" shop/orders: schema-autoupdate: "on" tenants: - tenant: public adminRoles: [] allowedClusters: - standalone - tenant: shop adminRoles: - shop-admin allowedClusters: - standalone security: - security: NONE tls: false acl: [] consumers: [] producers: [] functions: [] sources: [] sinks: [] brokerConfiguration: advertisedAddress: localhost backlogQuotaDefaultLimitGB: "10.0" bookkeeperClientMinNumRacksPerWriteQuorum: "1" bookkeeperClientReorderReadSequenceEnabled: "false" bookkeeperNumberOfChannelsPerBookie: "1" clusterName: standalone enablePackagesManagement: "true" forceDeleteNamespaceAllowed: "true" functionsWorkerEnablePackageManagement: "true" isRunningStandalone: "true" loadBalancerEnabled: "false" loadManagerClassName: org.apache.pulsar.broker.loadbalance.NoopLoadManager managedLedgerCacheEvictionFrequency: "100.0" managedLedgerDefaultAckQuorum: "1" managedLedgerDefaultEnsembleSize: "1" managedLedgerDefaultMarkDeleteRateLimit: "0.1" managedLedgerDefaultWriteQuorum: "1" metadataStoreUrl: rocksdb:///pulsar/data/metadata packagesManagementStorageProvider: org.apache.pulsar.packages.management.storage.filesystem.FileSystemPackagesStorageProvider statusFilePath: /usr/local/apache/htdocs topicPublisherThrottlingTickTimeMillis: "2" webSocketServiceEnabled: "true" clientConfiguration: serviceUrl: pulsar://pulsar-b:6650 webServiceUrl: http://pulsar-b:8080 producerConfiguration: {} consumerConfiguration: {}channels: persistent-shop-orders-created: address: persistent://shop/orders/created bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/created tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-paid: address: persistent://shop/orders/paid bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/paid tenant: shop namespace: orders persistence: persistent partitions: 2 geo-replication: - standalone topicConfiguration: partitions: 2 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-ticks: address: persistent://shop/orders/ticks bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/ticks tenant: shop namespace: orders persistence: persistent partitions: 0 geo-replication: - standalone topicConfiguration: partitions: 0 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on"operations: receive_persistent-shop-orders-created: action: receive channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-paid: action: receive channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-ticks: action: receive channel: $ref: "#/channels/persistent-shop-orders-ticks" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} send_persistent-shop-orders-created: action: send channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-paid: action: send channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-ticks: action: send channel: $ref: "#/channels/persistent-shop-orders-ticks" x-kurkik: pulsar: operation: security: [] producerConfiguration: {}How to build this setup yourself
Clusters
Fixture
pulsar-admin tenants create shop --allowed-clusters <its cluster> --admin-roles shop-adminpulsar-admin namespaces create shop/orders --clusters <its cluster>pulsar-admin topics create persistent://shop/orders/createdpulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2Side a
pulsar-admin --admin-url http://pulsar-a:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'pulsar-admin --admin-url http://pulsar-a:8080 sources create --tenant shop --namespace orders --name ticks --archive source://shop/orders/ticks@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Ticks --destination-topic-name persistent://shop/orders/tickspulsar-admin --admin-url http://pulsar-a:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'pulsar-admin --admin-url http://pulsar-a:8080 sinks create --tenant shop --namespace orders --name audit-log --archive sink://shop/orders/audit-log@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.AuditLog --inputs persistent://shop/orders/paid --subs-name audit-logSide b
Compare
kurkik conn add pulsar a --admin-url http://pulsar-a:8080 --service-url pulsar://pulsar-a:6650kurkik conn add pulsar b --admin-url http://pulsar-b:8080 --service-url pulsar://pulsar-b:6650kurkik pulsar export a --this-cluster-only --acls --consumers --stdout > a.yamlkurkik pulsar export b --this-cluster-only --acls --consumers --stdout > b.yamlkurkik pulsar diff a b --connectors-sink # cluster-vs-clusterkurkik pulsar diff a.yaml b --connectors-sink # document-vs-clusterkurkik pulsar diff a.yaml b.yaml --connectors-sink # document-vs-documentAll flags: kurkik pulsar diff · more Apache Pulsar diff examples
Copyright © 2026 Pavel Bodiachevskii