acceptable-terabyte-34789
11/15/2022, 7:57 AM{
"_1": "\u0003\u0000*�?Y�&CZ�=9�+�%��݊��a\"entityChangeEvent�\u0005{\"auditStamp\":{\"actor\":\"urn:li:corpuser:datahub\",\"time\":1668075837259},\"entityUrn\":\"urn:li:domain:xxxxxxx\",\"entityType\":\"domain\",\"modifier\":\"urn:li:corpuser:datahub\",\"category\":\"OWNER\",\"operation\":\"ADD\",\"version\":0,\"parameters\":{\"ownerType\":\"TECHNICAL_OWNER\",\"ownerUrn\":\"urn:li:corpuser:datahub\"}} application/json"
}
These are the properties we used with StringConverter as key.converter and value.converter.
connector.class=io.confluent.connect.s3.S3SinkConnector
behavior.on.null.values=ignore
s3.region=eu-west-1
flush.size=1
schema.compatibility=NONE
tasks.max=2
topics=PlatformEvent_v1
key.converter.schemas.enable=false
format.class=io.confluent.connect.s3.format.json.JsonFormat
partitioner.class=io.confluent.connect.storage.partitioner.DefaultPartitioner
value.converter.schemas.enable=false
value.converter=org.apache.kafka.connect.json.JsonConverter
storage.class=io.confluent.connect.s3.storage.S3Storage
s3.bucket.name=xxxxxxxxx
key.converter=org.apache.kafka.connect.json.JsonConverter
Then we tried changing to JsonConverter but it throws the following error:
[Worker-073fad87bf643ddc8] Caused by: org.apache.kafka.common.errors.SerializationException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'entityChangeEvent': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
How can we consume the records properly?
Thank you!acceptable-terabyte-34789
11/15/2022, 10:24 AMacceptable-terabyte-34789
11/15/2022, 10:36 AMbulky-electrician-72362
11/15/2022, 12:48 PMbulky-electrician-72362
11/15/2022, 12:50 PMacceptable-terabyte-34789
11/15/2022, 12:51 PMacceptable-terabyte-34789
11/15/2022, 12:51 PM