Skip to content

Check that two Pulsar clusters are identical

Set up alike in every area. Does Kurkik agree?

Terminal recording of kurkik pulsar diff

The recording shows kurkik pulsar diff on the demo sandbox; its data differs from this example.

Shown here: one cluster. Other broker setups are further down.

Terminal window
kurkik pulsar diff a b --all
a vs b
Notes
- Broker settings that name a machine or a cluster were not compared: advertisedAddress, clusterName, metadataStoreUrl, statusFilePath.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 124 matched
exit 0

Exit 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
Compare Command Result
two clusters kurkik pulsar diff a b --all Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 124 matched
a document and a cluster kurkik pulsar diff a.yaml b --all Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 124 matched
two documents kurkik pulsar diff a.yaml b.yaml --all Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 124 matched

Download the JSON report (-o json)

a.yaml, 558 lines
asyncapi: 3.0.0
info:
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:
- role: billing
resourceType: namespace
name: shop/orders
actions:
- consume
- role: audit
resourceType: topic
name: persistent://shop/orders/created
actions:
- consume
consumers:
- subscription: audit-log
type: Shared
topics:
- persistent://shop/orders/raw
processor: sink shop/orders/audit-log
- subscription: billing
type: Shared
topics:
- persistent://shop/orders/created
consumers:
- billing-1
- subscription: enrich
type: Shared
topics:
- persistent://shop/orders/raw
processor: function shop/orders/enrich
producers:
- producerName: checkout-1
accessMode: Shared
topics:
- persistent://shop/orders/created
functions:
- tenant: shop
namespace: orders
name: enrich
runtime: JAVA
className: com.github.pakisan.kurkik.pulsar.fixtures.Enrich
inputs:
- persistent://shop/orders/raw
output: persistent://shop/orders/enriched
subscriptionName: enrich
parallelism: 1
processingGuarantees: ATLEAST_ONCE
channels:
- $ref: "#/channels/persistent-shop-orders-raw"
- $ref: "#/channels/persistent-shop-orders-enriched"
roles: []
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/raw
subscriptionName: audit-log
parallelism: 1
processingGuarantees: ATLEAST_ONCE
channels:
- $ref: "#/channels/persistent-shop-orders-raw"
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
messages:
persistent-shop-orders-created:
payload:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Order
namespace: shop
fields:
- name: id
type: string
- name: total
type: double
name: persistent-shop-orders-created
title: persistent://shop/orders/created
summary: "Schema read from Pulsar's own registry: AVRO, version 0."
x-kurkik:
pulsar:
message:
schemaType: AVRO
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/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-enriched:
address: persistent://shop/orders/enriched
messages:
persistent-shop-orders-enriched:
payload:
type: string
name: persistent-shop-orders-enriched
title: persistent://shop/orders/enriched
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/enriched
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:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Payment
namespace: shop
fields:
- name: order
type: string
- name: paid
type: boolean
name: persistent-shop-orders-paid
title: persistent://shop/orders/paid
summary: "Schema read from Pulsar's own registry: JSON, version 0."
x-kurkik:
pulsar:
message:
schemaType: JSON
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-raw:
address: persistent://shop/orders/raw
messages:
persistent-shop-orders-raw:
payload:
type: string
name: persistent-shop-orders-raw
title: persistent://shop/orders/raw
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/raw
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-shipped:
address: persistent://shop/orders/shipped
messages:
persistent-shop-orders-shipped:
payload:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Shipment
namespace: shop
fields:
- name: id
type: string
- name: carrier
type: string
name: persistent-shop-orders-shipped
title: persistent://shop/orders/shipped
summary: "Schema read from Pulsar's own registry: PROTOBUF, version 0."
x-kurkik:
pulsar:
message:
schemaType: PROTOBUF
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/shipped
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-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:
groupId:
type: string
enum:
- billing
clientId:
type: string
enum:
- billing-1
security:
- audit
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-enriched:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-enriched"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-paid:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-paid"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-raw:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-raw"
x-kurkik:
pulsar:
operation:
groupId:
type: string
enum:
- audit-log
- enrich
security:
- billing
processors:
- type: function
name: shop/orders/enrich
server: standalone
- type: sink
name: shop/orders/audit-log
server: standalone
consumerConfiguration: {}
receive_persistent-shop-orders-shipped:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-shipped"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-ticks:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-ticks"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
send_persistent-shop-orders-created:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-created"
x-kurkik:
pulsar:
operation:
clientId:
type: string
enum:
- checkout-1
security: []
producerConfiguration: {}
send_persistent-shop-orders-enriched:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-enriched"
x-kurkik:
pulsar:
operation:
security: []
processors:
- type: function
name: shop/orders/enrich
server: standalone
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-raw:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-raw"
x-kurkik:
pulsar:
operation:
security: []
producerConfiguration: {}
send_persistent-shop-orders-shipped:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-shipped"
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: {}

Download a.yaml

b.yaml, 558 lines
asyncapi: 3.0.0
info:
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:
- role: billing
resourceType: namespace
name: shop/orders
actions:
- consume
- role: audit
resourceType: topic
name: persistent://shop/orders/created
actions:
- consume
consumers:
- subscription: audit-log
type: Shared
topics:
- persistent://shop/orders/raw
processor: sink shop/orders/audit-log
- subscription: billing
type: Shared
topics:
- persistent://shop/orders/created
consumers:
- billing-1
- subscription: enrich
type: Shared
topics:
- persistent://shop/orders/raw
processor: function shop/orders/enrich
producers:
- producerName: checkout-1
accessMode: Shared
topics:
- persistent://shop/orders/created
functions:
- tenant: shop
namespace: orders
name: enrich
runtime: JAVA
className: com.github.pakisan.kurkik.pulsar.fixtures.Enrich
inputs:
- persistent://shop/orders/raw
output: persistent://shop/orders/enriched
subscriptionName: enrich
parallelism: 1
processingGuarantees: ATLEAST_ONCE
channels:
- $ref: "#/channels/persistent-shop-orders-raw"
- $ref: "#/channels/persistent-shop-orders-enriched"
roles: []
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/raw
subscriptionName: audit-log
parallelism: 1
processingGuarantees: ATLEAST_ONCE
channels:
- $ref: "#/channels/persistent-shop-orders-raw"
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-b:6650
webServiceUrl: http://pulsar-b:8080
producerConfiguration: {}
consumerConfiguration: {}
channels:
persistent-shop-orders-created:
address: persistent://shop/orders/created
messages:
persistent-shop-orders-created:
payload:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Order
namespace: shop
fields:
- name: id
type: string
- name: total
type: double
name: persistent-shop-orders-created
title: persistent://shop/orders/created
summary: "Schema read from Pulsar's own registry: AVRO, version 0."
x-kurkik:
pulsar:
message:
schemaType: AVRO
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/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-enriched:
address: persistent://shop/orders/enriched
messages:
persistent-shop-orders-enriched:
payload:
type: string
name: persistent-shop-orders-enriched
title: persistent://shop/orders/enriched
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/enriched
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:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Payment
namespace: shop
fields:
- name: order
type: string
- name: paid
type: boolean
name: persistent-shop-orders-paid
title: persistent://shop/orders/paid
summary: "Schema read from Pulsar's own registry: JSON, version 0."
x-kurkik:
pulsar:
message:
schemaType: JSON
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-raw:
address: persistent://shop/orders/raw
messages:
persistent-shop-orders-raw:
payload:
type: string
name: persistent-shop-orders-raw
title: persistent://shop/orders/raw
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/raw
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-shipped:
address: persistent://shop/orders/shipped
messages:
persistent-shop-orders-shipped:
payload:
schemaFormat: application/vnd.apache.avro;version=1.9.0
schema:
type: record
name: Shipment
namespace: shop
fields:
- name: id
type: string
- name: carrier
type: string
name: persistent-shop-orders-shipped
title: persistent://shop/orders/shipped
summary: "Schema read from Pulsar's own registry: PROTOBUF, version 0."
x-kurkik:
pulsar:
message:
schemaType: PROTOBUF
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/shipped
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-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:
groupId:
type: string
enum:
- billing
clientId:
type: string
enum:
- billing-1
security:
- audit
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-enriched:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-enriched"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-paid:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-paid"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-raw:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-raw"
x-kurkik:
pulsar:
operation:
groupId:
type: string
enum:
- audit-log
- enrich
security:
- billing
processors:
- type: function
name: shop/orders/enrich
server: standalone
- type: sink
name: shop/orders/audit-log
server: standalone
consumerConfiguration: {}
receive_persistent-shop-orders-shipped:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-shipped"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
receive_persistent-shop-orders-ticks:
action: receive
channel:
$ref: "#/channels/persistent-shop-orders-ticks"
x-kurkik:
pulsar:
operation:
security:
- billing
consumerConfiguration: {}
send_persistent-shop-orders-created:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-created"
x-kurkik:
pulsar:
operation:
clientId:
type: string
enum:
- checkout-1
security: []
producerConfiguration: {}
send_persistent-shop-orders-enriched:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-enriched"
x-kurkik:
pulsar:
operation:
security: []
processors:
- type: function
name: shop/orders/enrich
server: standalone
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-raw:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-raw"
x-kurkik:
pulsar:
operation:
security: []
producerConfiguration: {}
send_persistent-shop-orders-shipped:
action: send
channel:
$ref: "#/channels/persistent-shop-orders-shipped"
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: {}

Download b.yaml

How to build this setup yourself

Clusters

Fixture

Terminal window
pulsar-admin tenants create shop --allowed-clusters <its cluster> --admin-roles shop-admin
pulsar-admin namespaces create shop/orders --clusters <its cluster>
pulsar-admin topics create persistent://shop/orders/created
pulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2

Side a

Terminal window
pulsar-admin --admin-url http://pulsar-a:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-a:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-a:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-a:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-a:8080 topics create persistent://shop/orders/shipped
pulsar-admin --admin-url http://pulsar-a:8080 schemas upload persistent://shop/orders/created -f schema.json # {"type": "AVRO", "schema": "{\"type\":\"record\",\"name\":\"Order\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"total\",\"type\":\"double\"}]}"}
pulsar-admin --admin-url http://pulsar-a:8080 schemas upload persistent://shop/orders/paid -f schema.json # {"type": "JSON", "schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"order\",\"type\":\"string\"},{\"name\":\"paid\",\"type\":\"boolean\"}]}"}
pulsar-admin --admin-url http://pulsar-a:8080 schemas upload persistent://shop/orders/shipped -f schema.json # {"type": "PROTOBUF", "schema": "{\"type\":\"record\",\"name\":\"Shipment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"carrier\",\"type\":\"string\"}]}"}
pulsar-admin --admin-url http://pulsar-a:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-a:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-a:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
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/ticks
pulsar-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/raw --subs-name audit-log

Side b

Terminal window
pulsar-admin --admin-url http://pulsar-b:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-b:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-b:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-b:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-b:8080 topics create persistent://shop/orders/shipped
pulsar-admin --admin-url http://pulsar-b:8080 schemas upload persistent://shop/orders/created -f schema.json # {"type": "AVRO", "schema": "{\"type\":\"record\",\"name\":\"Order\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"total\",\"type\":\"double\"}]}"}
pulsar-admin --admin-url http://pulsar-b:8080 schemas upload persistent://shop/orders/paid -f schema.json # {"type": "JSON", "schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"order\",\"type\":\"string\"},{\"name\":\"paid\",\"type\":\"boolean\"}]}"}
pulsar-admin --admin-url http://pulsar-b:8080 schemas upload persistent://shop/orders/shipped -f schema.json # {"type": "PROTOBUF", "schema": "{\"type\":\"record\",\"name\":\"Shipment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"carrier\",\"type\":\"string\"}]}"}
pulsar-admin --admin-url http://pulsar-b:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-b:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-b:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
pulsar-admin --admin-url http://pulsar-b:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-b: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/ticks
pulsar-admin --admin-url http://pulsar-b:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-b: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/raw --subs-name audit-log

Compare

Terminal window
kurkik conn add pulsar a --admin-url http://pulsar-a:8080 --service-url pulsar://pulsar-a:6650
kurkik conn add pulsar b --admin-url http://pulsar-b:8080 --service-url pulsar://pulsar-b:6650
kurkik pulsar export a --this-cluster-only --acls --consumers --stdout > a.yaml
kurkik pulsar export b --this-cluster-only --acls --consumers --stdout > b.yaml
kurkik pulsar diff a b --all # cluster-vs-cluster
kurkik pulsar diff a.yaml b --all # document-vs-cluster
kurkik pulsar diff a.yaml b.yaml --all # document-vs-document
Show the output
east vs west
Notes
- Broker settings that name a machine or a cluster were not compared: advertisedAddress, clusterName, metadataStoreUrl, statusFilePath.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) - 107 matched
exit 0

Download

How to build this setup yourself

Clusters

Terminal window
pulsar-admin --admin-url http://pulsar-east:8080 clusters create west --url http://pulsar-west:8080 --broker-url pulsar://pulsar-west:6650
pulsar-admin --admin-url http://pulsar-west:8080 clusters create east --url http://pulsar-east:8080 --broker-url pulsar://pulsar-east:6650

Fixture

Terminal window
pulsar-admin tenants create shop --allowed-clusters east,west --admin-roles shop-admin
pulsar-admin namespaces create shop/orders --clusters east,west
pulsar-admin tenants update public --allowed-clusters east,west # Pulsar's own tenant, allowed on the pair as shop is
pulsar-admin topics create persistent://shop/orders/created
pulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2

Side east

Terminal window
pulsar-admin --admin-url http://pulsar-east:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-east:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-east:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-east:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-east:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-east:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
pulsar-admin --admin-url http://pulsar-east:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east: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/ticks
pulsar-admin --admin-url http://pulsar-east:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east: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/raw --subs-name audit-log

Side west

Terminal window
pulsar-admin --admin-url http://pulsar-west:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-west:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-west:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-west:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-west:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-west:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
pulsar-admin --admin-url http://pulsar-west:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west: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/ticks
pulsar-admin --admin-url http://pulsar-west:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west: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/raw --subs-name audit-log

Compare

Terminal window
kurkik conn add pulsar east --admin-url http://pulsar-east:8080 --service-url pulsar://pulsar-east:6650
kurkik conn add pulsar west --admin-url http://pulsar-west:8080 --service-url pulsar://pulsar-west:6650
kurkik pulsar export east --this-cluster-only --acls --consumers --stdout > east.yaml
kurkik pulsar export west --this-cluster-only --acls --consumers --stdout > west.yaml
kurkik pulsar diff east west --all # cluster-vs-cluster
kurkik pulsar diff east.yaml west --all # document-vs-cluster
kurkik pulsar diff east.yaml west.yaml --all # document-vs-document
Show the output
east vs west
Topics
! persistent://shop/east-only/records topic - Topic persistent://shop/east-only/records is not on west. (east: persistent://shop/east-only/records)
+ persistent://shop/west-only/records topic - Topic persistent://shop/west-only/records is not on east. (west: persistent://shop/west-only/records)
Namespace policies
! shop/east-only namespace - Namespace shop/east-only is on east and not on west. (east: shop/east-only)
~ shop/east-only schema-autoupdate - shop/east-only sets schema-autoupdate on east and not on west. (east: on, west: (not set))
+ shop/west-only namespace - Namespace shop/west-only is on west and not on east. (west: shop/west-only)
Subscriptions
! east-reports subscription - Subscription east-reports is on east and not on west. (east: east-reports)
+ west-reports subscription - Subscription west-reports is on west and not on east. (west: west-reports)
ACLs
! east-team - east grants east-team consume,produce on namespace shop/east-only; west does not.
+ west-team - west grants west-team consume,produce on namespace shop/west-only; east does not.
Notes
- Broker settings that name a machine or a cluster were not compared: advertisedAddress, clusterName, metadataStoreUrl, statusFilePath.
Drift: 1 changed · 4 unmanaged · 4 missing (drift) - 107 matched
exit 2

Download

How to build this setup yourself

Clusters

Terminal window
pulsar-admin --admin-url http://pulsar-east:8080 clusters create west --url http://pulsar-west:8080 --broker-url pulsar://pulsar-west:6650
pulsar-admin --admin-url http://pulsar-west:8080 clusters create east --url http://pulsar-east:8080 --broker-url pulsar://pulsar-east:6650

Fixture

Terminal window
pulsar-admin tenants create shop --allowed-clusters east,west --admin-roles shop-admin
pulsar-admin namespaces create shop/orders --clusters east,west
pulsar-admin tenants update public --allowed-clusters east,west # Pulsar's own tenant, allowed on the pair as shop is
pulsar-admin topics create persistent://shop/orders/created
pulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2
Terminal window
pulsar-admin --admin-url http://pulsar-east:8080 namespaces create shop/east-only --clusters east
pulsar-admin --admin-url http://pulsar-east:8080 topics create persistent://shop/east-only/records
pulsar-admin --admin-url http://pulsar-east:8080 namespaces grant-permission shop/east-only --role east-team --actions consume,produce
pulsar-admin --admin-url http://pulsar-east:8080 topics create-subscription persistent://shop/east-only/records --subscription east-reports
pulsar-admin --admin-url http://pulsar-west:8080 namespaces create shop/west-only --clusters west
pulsar-admin --admin-url http://pulsar-west:8080 topics create persistent://shop/west-only/records
pulsar-admin --admin-url http://pulsar-west:8080 namespaces grant-permission shop/west-only --role west-team --actions consume,produce
pulsar-admin --admin-url http://pulsar-west:8080 topics create-subscription persistent://shop/west-only/records --subscription west-reports

Side east

Terminal window
pulsar-admin --admin-url http://pulsar-east:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-east:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-east:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-east:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-east:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-east:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
pulsar-admin --admin-url http://pulsar-east:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east: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/ticks
pulsar-admin --admin-url http://pulsar-east:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-east: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/raw --subs-name audit-log

Side west

Terminal window
pulsar-admin --admin-url http://pulsar-west:8080 namespaces grant-permission shop/orders --role billing --actions consume
pulsar-admin --admin-url http://pulsar-west:8080 topics grant-permission persistent://shop/orders/created --role audit --actions consume
pulsar-client --url pulsar://pulsar-west:6650 consume persistent://shop/orders/created -s billing -t Shared -n 0 & # connected as billing-1 while read
pulsar-client --url pulsar://pulsar-west:6650 produce persistent://shop/orders/created ... # connected as checkout-1 while read
pulsar-admin --admin-url http://pulsar-west:8080 topics create persistent://shop/orders/raw
pulsar-admin --admin-url http://pulsar-west:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west:8080 functions create --tenant shop --namespace orders --name enrich --jar function://shop/orders/enrich@0 --classname com.github.pakisan.kurkik.pulsar.fixtures.Enrich --inputs persistent://shop/orders/raw --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1
pulsar-admin --admin-url http://pulsar-west:8080 packages upload source://shop/orders/ticks@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west: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/ticks
pulsar-admin --admin-url http://pulsar-west:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'
pulsar-admin --admin-url http://pulsar-west: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/raw --subs-name audit-log

Compare

Terminal window
kurkik conn add pulsar east --admin-url http://pulsar-east:8080 --service-url pulsar://pulsar-east:6650
kurkik conn add pulsar west --admin-url http://pulsar-west:8080 --service-url pulsar://pulsar-west:6650
kurkik pulsar export east --this-cluster-only --acls --consumers --stdout > east.yaml
kurkik pulsar export west --this-cluster-only --acls --consumers --stdout > west.yaml
kurkik pulsar diff east west --all # cluster-vs-cluster
kurkik pulsar diff east.yaml west --all # document-vs-cluster
kurkik pulsar diff east.yaml west.yaml --all # document-vs-document

All flags: kurkik pulsar diff · more Apache Pulsar diff examples