Abdelhakim Bendjabeur
01/17/2023, 1:53 PM) WITH (
'connector' = 'kafka',
'property-version' = 'universal',
'properties.bootstrap.servers' = 'host.docker.internal:29092',
'scan.startup.mode' = 'earliest-offset',
'value.format' = 'avro-confluent',
'value.avro-confluent.url' = '<http://host.docker.internal:8765/apis/ccompat/v6>', -- apicurio
'topic' = 'my-topic',
'properties.group.id' = 'mmy-consumer-group'
);
Here is the error
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.avro.registry.confluent.shaded.io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: No content with id/hash 'contentId-0' was found.; error code: 40403
The endpoint runs fine
curl <http://localhost:8765/apis/ccompat/v6/schemas/ids/1>
{"schema":"{\"type\":\"record\",\
...
}
But it seems that Flink isn't able to read the bytes containing the schema ID. It keeps reading 0 instead of 1, 2, ...
Has anyone ever faced this issue, and is there a config to add to tell Flink to look at the first 8 bytes for the artefact ID?Martijn Visser
01/17/2023, 1:57 PMAbdelhakim Bendjabeur
01/17/2023, 2:03 PMReme Ajayi
01/17/2023, 2:13 PMAbdelhakim Bendjabeur
01/17/2023, 2:14 PMAbdelhakim Bendjabeur
01/17/2023, 2:15 PMavro-confluent.properties , but I can not find the list of options anywhere...