Hi everyone,
I am using com.couchbase.client:kafka-connect-couchbase:3.4.8 with Couchbase version 6.*. I want to populate the topic with the Avro schema registered for that topic in the schema registry.
I have tried multiple ways, but the config is not working. It is always using the default schema, which is not valid for my use.
If you have any samples that show how to integrate with the schema registry with custom schemas, please share them.
Thanks in advance.
The Config used :
{
“name”: “events-source-connector”,
“config”: {
“name”: “events-source-connector”,
“connector.class”: “com.couchbase.connect.kafka.CouchbaseSourceConnector”,
“tasks.max”: “2”,
“topic.name”: “bttv-intent-to-play-events”,
“connection.cluster_address”: “events-db”,
“connection.timeout.ms”: “10000”,
“connection.bucket”: “myBucket”,
“connection.username”: “user”,
“connection.password”: “drowssap”,
“couchbase.event_types”: “CREATE,UPDATE”,
“use_snapshots”: “false”,
“schema.url”: “http://schema-registry:8081”,
“key.converter”: “org.apache.kafka.connect.storage.StringConverter”,
“value.converter”: “io.confluent.connect.avro.AvroConverter”,
“value.converter.schema.registry.url”: “http://schema-registry:8081”,
“value.converter.format”: “AVRO”,
“value.converter.schemas.enable”: “true”,
“value.converter.auto.register.schemas”: “false”,
“value.converter.connect.meta.data”: “false”,
“value.converter.enhanced.avro.schema.support”: “true”,
“internal.key.converter”: “org.apache.kafka.connect.storage.StringConverter”,
“internal.value.converter”: “io.confluent.connect.avro.AvroConverter”,
“internal.value.converter.schema.registry.url”: “http://schema-registry:8081”,
“internal.key.converter.schemas.enable”: “false”,
“internal.value.converter.schemas.enable”: “false”,
“dcp.message.converter.class”: “com.couchbase.connect.kafka.converter.SchemaConverter”,
“offset.storage.file.filename”: “/tmp/connect.offsets”,
“offset.flush.interval.ms”: “10000”,
“couchbase.stream.from”: “NOW”,
“couchbase.filter.type”: “DOCUMENTS_ONLY”,
“couchbase.compression”: “ENABLED”,
“couchbase.flow_control_buffer”: “128m”,
“couchbase.persistence_polling_interval”: “100ms”,
“errors.tolerance”: “all”,
“errors.log.enable”: “true”,
“errors.log.include.messages”: “true”,
“couchbase.log.redaction”: “FULL”
}
}