Hi All,
I am getting the error below when trying to POST my source connector. I am using the unwrap-smt example and trying to set-up process from Postgres to Kafka to Redshift. Following this
article by Jiri Pechanec. The connector works if I remove references to apicurio.
{"error_code":400,"message":"Connector configuration is invalid and contains the following 2 error(s):\nInvalid value io.apicurio.registry.utils.converter.ExtJsonConverter for configuration key.converter: Class io.apicurio.registry.utils.converter.ExtJsonConverter could not be found.\nInvalid value io.apicurio.registry.utils.converter.ExtJsonConverter for configuration value.converter: Class io.apicurio.registry.utils.converter.ExtJsonConverter could not be found.\nYou can also find the above list of errors at the endpoint `/{connectorType}/config/validate`"}%
Below is my config that works:
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/ -d '
{
"name": "inventory-connector",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"database.hostname": "postgres",
"database.port": "5432",
"database.user": "postgresuser",
"database.password": "postgrespw",
"database.dbname" : "inventory",
"schema.include": "inventory",
"time.precision.mode":"connect",
"transforms": "route",
"transforms.route.type": "org.apache.kafka.connect.transforms.RegexRouter",
"transforms.route.regex": "([^.]+)\\.([^.]+)\\.([^.]+)",
"transforms.route.replacement": "$3"
}
}
'
This does not work
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/ -d '
{
"name": "inventory-connector",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"database.hostname": "postgres",
"database.port": "5432",
"database.user": "postgresuser",
"database.password": "postgrespw",
"database.dbname" : "inventory",
"schema.include": "inventory",
"time.precision.mode":"connect",
"key.converter":"io.apicurio.registry.utils.converter.ExtJsonConverter",
"key.converter.apicurio.registry.auto-register":"true",
"key.converter.apicurio.registry.find-latest":"true",
"value.converter":"io.apicurio.registry.utils.converter.ExtJsonConverter",
"value.converter.apicurio.registry.auto-register":"true",
"value.converter.apicurio.registry.find-latest":"true",
"transforms": "route",
"transforms.route.type": "org.apache.kafka.connect.transforms.RegexRouter",
"transforms.route.regex": "([^.]+)\\.([^.]+)\\.([^.]+)",
"transforms.route.replacement": "$3"
}
}
'
Any help would be greatly appreciated!