Skip to content

Commit f4dacaa

Browse files
committed
DBZ-5720 [Cloudevents] Switch to apicurio registry
1 parent bb1e88c commit f4dacaa

4 files changed

Lines changed: 11 additions & 26 deletions

File tree

cloudevents/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Examine its contents like so:
5151
docker run --rm --tty \
5252
--network cloudevents-network \
5353
quay.io/debezium/tooling:1.2 \
54-
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8081 \
54+
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8080 \
5555
-t customers2 | jq .
5656
```
5757

@@ -65,7 +65,7 @@ curl -i -X PUT -H "Accept:application/json" -H "Content-Type:application/json"
6565
docker run --rm --tty \
6666
--network cloudevents-network \
6767
quay.io/debezium/tooling:1.2 \
68-
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8081 \
68+
kafkacat -b kafka:9092 -C -o beginning -q -s value=avro -r http://schema-registry:8080 \
6969
-t dbserver3.inventory.customers | jq .
7070
```
7171

cloudevents/docker-compose.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,32 +44,13 @@ services:
4444
- STATUS_STORAGE_TOPIC=my_connect_statuses
4545
- KAFKA_DEBUG=true
4646
- DEBUG_SUSPEND_FLAG=n
47+
- ENABLE_APICURIO_CONVERTERS=true
4748
networks:
4849
- my-network
4950
schema-registry:
50-
image: confluentinc/cp-schema-registry:7.0.1
51+
image: apicurio/apicurio-registry-mem:2.2.5.Final
5152
ports:
52-
- 8181:8181
53-
- 8081:8081
54-
environment:
55-
- SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=kafka:9092
56-
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
57-
- SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081
58-
- SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS=GET,POST,PUT,OPTIONS
59-
- SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN=*
60-
links:
61-
- zookeeper
62-
networks:
63-
- my-network
64-
schema-registry-ui:
65-
image: landoop/schema-registry-ui
66-
ports:
67-
- 8000:8000
68-
environment:
69-
- SCHEMAREGISTRY_URL=http://schema-registry:8081
70-
- PROXY=true
71-
links:
72-
- schema-registry
53+
- 8080:8080
7354
networks:
7455
- my-network
7556
avro-extractor:

cloudevents/register-postgres-avro-avro.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
"value.converter": "io.debezium.converters.CloudEventsConverter",
1515
"value.converter.serializer.type" : "avro",
1616
"value.converter.data.serializer.type" : "avro",
17-
"value.converter.avro.schema.registry.url": "http://schema-registry:8081"
17+
"value.converter.avro.apicurio.registry.url": "http://schema-registry:8080/apis/registry/v2",
18+
"value.converter.avro.apicurio.registry.auto-register": "true",
19+
"value.converter.avro.apicurio.registry.find-latest": "true"
1820
}

cloudevents/register-postgres-json-avro.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
"key.converter.schemas.enable": "false",
1414
"value.converter": "io.debezium.converters.CloudEventsConverter",
1515
"value.converter.data.serializer.type" : "avro",
16-
"value.converter.avro.schema.registry.url": "http://schema-registry:8081"
16+
"value.converter.avro.apicurio.registry.url": "http://schema-registry:8080/apis/registry/v2",
17+
"value.converter.avro.apicurio.registry.auto-register": "true",
18+
"value.converter.avro.apicurio.registry.find-latest": "true"
1719
}

0 commit comments

Comments
 (0)