Find what was left behind after a Pulsar migration
Migrated already? Check that nothing was forgotten.

The recording shows kurkik pulsar migrate-diff on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik pulsar migrate-diff four fiveOutput
Section titled “Output”four (Pulsar 4.0) vs five (Pulsar 5.0)
Partitions and persistence ~ persistent://shop/orders/shipped partitions - Its partitions differ. (four: 4, five: 2)
Schemas ~ persistent://shop/orders/paid payload - The value schemas differ (v1 and v0). (four: v1 Avro, five: v0 Avro) ~ persistent://shop/orders/paid structure - The structures differ in 1 field(s): note. (four: AVRO, five: AVRO) ~ persistent://shop/orders/paid payload.note - note is only on four. (four: string, optional, five: (absent)) ~ persistent://shop/orders/paid versions - four has 2 version(s) and five 1. (four: 2, five: 1) ! persistent://shop/orders/paid version 2 - Version 2 (v1 Avro) is only on four. (four: v1 Avro)
Functions, sources and sinks ! sink shop/orders/audit-log sink - The sink shop/orders/audit-log runs on four and not on five. (four: shop/orders/audit-log)
Re-check * shop/orders/events persistence - Topic shop/orders/events is non-persistent on four and persistent on five: five stores its messages now - make sure it should be durable. (four: non-persistent, five: persistent)
Migrations - server manual replaced broker sslFactoryPluginParams -> tlsFactoryConfig - The parameters of the new factory, a JSON object or key=value list: carry them over by hand once the factory class is ported. (four: verify=true)
Defaults moved - server (24) broker acknowledgmentAtBatchIndexLevelEnabled: false -> true broker bookkeeperClientSeparatedIoThreadsEnabled: false -> true broker defaultNumberOfNamespaceBundles: 4 -> 32 broker dispatcherMaxReadBatchSize: 100 -> 500 broker internalListenerName: null -> internal broker keySharedLookAheadMsgInReplayThresholdPerConsumer: 2000 -> 4000 broker keySharedLookAheadMsgInReplayThresholdPerSubscription: 20000 -> 40000 broker loadBalancerDistributeBundlesEvenlyEnabled: true -> false broker loadBalancerLoadPlacementStrategy: org.apache.pulsar.broker.loadbalance.impl.LeastLongTermMessageRate -> org.apache.pulsar.broker.loadbalance.impl.AvgShedder broker loadBalancerLoadSheddingStrategy: org.apache.pulsar.broker.loadbalance.impl.ThresholdShedder -> org.apache.pulsar.broker.loadbalance.impl.AvgShedder broker managedCursorInfoCompressionType: NONE -> LZ4 broker managedLedgerInfoCompressionType: NONE -> LZ4 broker managedLedgerMaxBatchDeletedIndexToPersist: 10000 -> 200000 broker managedLedgerMaxReadsInFlightSizeInMB: 0 -> null broker managedLedgerMaxUnackedRangesToPersist: 10000 -> 200000 broker managedLedgerMaxUnackedRangesToPersistInMetadataStore: 1000 -> 200000 broker managedLedgerPersistIndividualAckAsLongArray: false -> true broker maxUnloadPercentage: 0.2 -> 0.5 broker schemaRegistryCompatibilityCheckers: [org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.JsonSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck] -> [org.apache.pulsar.broker.service.schema.ExternalSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.JsonSchemaCompatibilityCheck, org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck] broker tlsHostnameVerificationEnabled: false -> true broker transactionBufferProviderClassName: org.apache.pulsar.broker.transaction.buffer.impl.TopicTransactionBufferProvider -> org.apache.pulsar.broker.transaction.buffer.impl.DispatchingTransactionBufferProvider broker transactionPendingAckStoreProviderClassName: org.apache.pulsar.broker.transaction.pendingack.impl.MLPendingAckStoreProvider -> org.apache.pulsar.broker.transaction.pendingack.impl.DispatchingTransactionPendingAckStoreProvider broker webServiceTlsProvider: Conscrypt -> none client tlsHostnameVerificationEnable: false -> true
Defaults moved - operation (1) consumer cryptoFailureAction: FAIL -> null
Notes - Not compared: ACLs, consumers. Add --acls --consumers to compare them too. - Four runs the Pulsar 4.0 line and Five the 5.0 line: settings are compared through both lines' catalogs (4.0 from 4.0.14, 5.0 from 5.0.0) and the settings each renamed, retyped, replaced or dropped.
Drift: 5 changed · 0 unmanaged · 2 missing · 1 re-check (drift) - 66 matched · 1 migration(s), 1 manual · 25 default(s) moved
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 migrate-diff four five |
Drift: 5 changed · 0 unmanaged · 2 missing · 1 re-check (drift) - 66 matched · 1 migration(s), 1 manual · 25 default(s) moved |
| a document and a cluster | kurkik pulsar migrate-diff four.yaml five |
Drift: 5 changed · 0 unmanaged · 2 missing · 1 re-check (drift) - 66 matched · 1 migration(s), 1 manual · 25 default(s) moved |
| two documents | kurkik pulsar migrate-diff four.yaml five.yaml |
Drift: 5 changed · 0 unmanaged · 2 missing · 1 re-check (drift) - 66 matched · 1 migration(s), 1 manual · 25 default(s) moved |
Download the JSON report (-o json)
The documents compared
Section titled “The documents compared”four.yaml, 435 lines
asyncapi: 3.0.0info: title: four Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of four (http://pulsar-four:8080).servers: standalone: host: pulsar-four: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-four: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/enriched processor: sink shop/orders/audit-log - subscription: enrich type: Shared topics: - persistent://shop/orders/created processor: function shop/orders/enrich producers: [] functions: - tenant: shop namespace: orders name: enrich runtime: JAVA className: com.github.pakisan.kurkik.pulsar.fixtures.Enrich inputs: - persistent://shop/orders/created output: persistent://shop/orders/enriched subscriptionName: enrich parallelism: 1 processingGuarantees: ATLEAST_ONCE channels: - $ref: "#/channels/persistent-shop-orders-created" - $ref: "#/channels/persistent-shop-orders-enriched" roles: [] sources: [] sinks: - tenant: shop namespace: orders name: audit-log className: com.github.pakisan.kurkik.pulsar.fixtures.AuditLog inputs: - persistent://shop/orders/enriched subscriptionName: audit-log parallelism: 1 processingGuarantees: ATLEAST_ONCE channels: - $ref: "#/channels/persistent-shop-orders-enriched" 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 sslFactoryPluginParams: verify=true statusFilePath: /usr/local/apache/htdocs topicPublisherThrottlingTickTimeMillis: "2" webSocketServiceEnabled: "true" clientConfiguration: serviceUrl: pulsar://pulsar-four:6650 webServiceUrl: http://pulsar-four:8080 producerConfiguration: {} consumerConfiguration: {}channels: non-persistent-shop-orders-events: address: non-persistent://shop/orders/events bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: non-persistent x-kurkik: pulsar: channel: topic: non-persistent://shop/orders/events tenant: shop namespace: orders persistence: non-persistent partitions: 1 geo-replication: - standalone topicConfiguration: partitions: 1 persistence: non-persistent replication-clusters: - standalone schema-autoupdate: "on" persistent-shop-orders-created: address: persistent://shop/orders/created messages: persistent-shop-orders-created: payload: type: string name: persistent-shop-orders-created title: persistent://shop/orders/created 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/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: note type: - "null" - string default: null name: persistent-shop-orders-paid title: persistent://shop/orders/paid summary: "Schema read from Pulsar's own registry: AVRO, version 1." x-kurkik: pulsar: message: schemaType: AVRO schemaVersion: 1 schemaIdLocation: metadata schemaLookupStrategy: topic schemaCompatibility: FULL schemaVersions: - version: 0 schemaType: AVRO 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 - version: 1 schemaType: AVRO 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: note type: - "null" - string default: null 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-shipped: address: persistent://shop/orders/shipped 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: 4 geo-replication: - standalone topicConfiguration: partitions: 4 persistence: persistent replication-clusters: - standalone schema-autoupdate: "on"operations: receive_non-persistent-shop-orders-events: action: receive channel: $ref: "#/channels/non-persistent-shop-orders-events" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-created: action: receive channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: groupId: type: string enum: - enrich security: [] processors: - type: function name: shop/orders/enrich server: standalone consumerConfiguration: {} receive_persistent-shop-orders-enriched: action: receive channel: $ref: "#/channels/persistent-shop-orders-enriched" 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-paid: action: receive channel: $ref: "#/channels/persistent-shop-orders-paid" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-shipped: action: receive channel: $ref: "#/channels/persistent-shop-orders-shipped" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} send_non-persistent-shop-orders-events: action: send channel: $ref: "#/channels/non-persistent-shop-orders-events" x-kurkik: pulsar: operation: security: [] producerConfiguration: {} send_persistent-shop-orders-created: action: send channel: $ref: "#/channels/persistent-shop-orders-created" x-kurkik: pulsar: operation: 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-shipped: action: send channel: $ref: "#/channels/persistent-shop-orders-shipped" x-kurkik: pulsar: operation: security: [] producerConfiguration: {}five.yaml, 374 lines
asyncapi: 3.0.0info: title: five Apache Pulsar API version: 1.0.0-SNAPSHOT description: Generated by reading Apache Pulsar of five (http://pulsar-five:8080).servers: standalone: host: pulsar-five:6650 protocol: pulsar protocolVersion: "5.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-five: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: enrich type: Shared topics: - persistent://shop/orders/created processor: function shop/orders/enrich producers: [] functions: - tenant: shop namespace: orders name: enrich runtime: JAVA className: com.github.pakisan.kurkik.pulsar.fixtures.Enrich inputs: - persistent://shop/orders/created output: persistent://shop/orders/enriched subscriptionName: enrich parallelism: 1 processingGuarantees: ATLEAST_ONCE channels: - $ref: "#/channels/persistent-shop-orders-created" - $ref: "#/channels/persistent-shop-orders-enriched" roles: [] 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-five:6650 webServiceUrl: http://pulsar-five:8080 producerConfiguration: {} consumerConfiguration: {}channels: persistent-shop-orders-created: address: persistent://shop/orders/created messages: persistent-shop-orders-created: payload: type: string name: persistent-shop-orders-created title: persistent://shop/orders/created 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/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-events: address: persistent://shop/orders/events bindings: pulsar: bindingVersion: 0.1.0 namespace: orders persistence: persistent x-kurkik: pulsar: channel: topic: persistent://shop/orders/events tenant: shop namespace: orders persistence: persistent partitions: 1 geo-replication: - standalone topicConfiguration: partitions: 1 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: 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/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-shipped: address: persistent://shop/orders/shipped 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: 2 geo-replication: - standalone topicConfiguration: partitions: 2 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: - enrich security: [] processors: - type: function name: shop/orders/enrich server: standalone consumerConfiguration: {} receive_persistent-shop-orders-enriched: action: receive channel: $ref: "#/channels/persistent-shop-orders-enriched" x-kurkik: pulsar: operation: security: [] consumerConfiguration: {} receive_persistent-shop-orders-events: action: receive channel: $ref: "#/channels/persistent-shop-orders-events" 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-shipped: action: receive channel: $ref: "#/channels/persistent-shop-orders-shipped" 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-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-events: action: send channel: $ref: "#/channels/persistent-shop-orders-events" 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-shipped: action: send channel: $ref: "#/channels/persistent-shop-orders-shipped" x-kurkik: pulsar: operation: security: [] producerConfiguration: {}How to build this setup yourself
Clusters
Fixture
pulsar-admin tenants create shop --allowed-clusters standalone --admin-roles shop-adminpulsar-admin namespaces create shop/orders --clusters standalonepulsar-admin topics create persistent://shop/orders/createdpulsar-admin topics create-partitioned-topic persistent://shop/orders/paid --partitions 2Side four
pulsar-admin --admin-url http://pulsar-four:8080 schemas upload persistent://shop/orders/paid -f schema.json # {"type": "AVRO", "schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"order\",\"type\":\"string\"},{\"name\":\"paid\",\"type\":\"boolean\"}]}"}pulsar-admin --admin-url http://pulsar-four:8080 schemas upload persistent://shop/orders/paid -f schema.json # {"type": "AVRO", "schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"order\",\"type\":\"string\"},{\"name\":\"paid\",\"type\":\"boolean\"},{\"name\":\"note\",\"type\":[\"null\",\"string\"],\"default\":null}]}"}pulsar-admin --admin-url http://pulsar-four:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'pulsar-admin --admin-url http://pulsar-four: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/created --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1pulsar-admin --admin-url http://pulsar-four:8080 topics create-partitioned-topic persistent://shop/orders/shipped --partitions 4pulsar-admin --admin-url http://pulsar-four:8080 topics create-partitioned-topic non-persistent://shop/orders/events --partitions 1pulsar-admin --admin-url http://pulsar-four:8080 packages upload sink://shop/orders/audit-log@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'pulsar-admin --admin-url http://pulsar-four: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/enriched --subs-name audit-logSide five
pulsar-admin --admin-url http://pulsar-five:8080 schemas upload persistent://shop/orders/paid -f schema.json # {"type": "AVRO", "schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"shop\",\"fields\":[{\"name\":\"order\",\"type\":\"string\"},{\"name\":\"paid\",\"type\":\"boolean\"}]}"}pulsar-admin --admin-url http://pulsar-five:8080 packages upload function://shop/orders/enrich@0 --path kurkik-pulsar-processors.jar --description 'kurkik fixtures'pulsar-admin --admin-url http://pulsar-five: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/created --output persistent://shop/orders/enriched --subs-name enrich --parallelism 1pulsar-admin --admin-url http://pulsar-five:8080 topics create-partitioned-topic persistent://shop/orders/shipped --partitions 2pulsar-admin --admin-url http://pulsar-five:8080 topics create-partitioned-topic persistent://shop/orders/events --partitions 1Compare
kurkik conn add pulsar four --admin-url http://pulsar-four:8080 --service-url pulsar://pulsar-four:6650 --client 4.0kurkik conn add pulsar five --admin-url http://pulsar-five:8080 --service-url pulsar://pulsar-five:6650 --client 5.0kurkik pulsar export four --this-cluster-only --acls --consumers --stdout > four.yamlkurkik pulsar export five --this-cluster-only --acls --consumers --stdout > five.yamlkurkik pulsar migrate-diff four five # cluster-vs-clusterkurkik pulsar migrate-diff four.yaml five # document-vs-clusterkurkik pulsar migrate-diff four.yaml five.yaml # document-vs-documentAll flags: kurkik pulsar migrate-diff · more Apache Pulsar migrate-diff examples
Copyright © 2026 Pavel Bodiachevskii