I have a kafka topic, the value there is avro format, where the schema is stored in schema registry.
Now I want to setup a S3 Sink, following this: https://docs.confluent.io/current/connect/connect-storage-cloud/kafka-connect-s3/docs/s3_connector.html#basic-example
In the webpage, they use
schema.generator.class=io.confluent.connect.storage.hive.schema.DefaultSchemaGenerator
And when I try to reload the generated .avro data, I found the schema is a little bit different. For example, the nested enum type became string. I can only restore a GenericRecord
instead of a SpecificRecord
.
Is there a way to specify a schema generator, which retrieve the schema from schema registry?