dongkelun opened a new pull request #3502:
URL: https://github.com/apache/hudi/pull/3502


   ## What is the purpose of the pull request
   Add support ByteArrayDeserializer in AvroKafkaSource
   
   
   
   ## Verify this pull request
   
   When the 'value.serializer' of Kafka Avro Producer is 
'org.apache.kafka.common.serialization.ByteArraySerializer',Use the following 
configuration
   
   --source-class org.apache.hudi.utilities.sources.AvroKafkaSource \
   --schemaprovider-class 
org.apache.hudi.utilities.schema.JdbcbasedSchemaProvider \
   --hoodie-conf 
"hoodie.deltastreamer.source.kafka.value.deserializer.class=org.apache.kafka.common.serialization.ByteArrayDeserializer"
   
   For now,It will throw an exception:
   java.lang.ClassCastException: [B cannot be cast to 
org.apache.avro.generic.GenericRecord
   
   After support ByteArrayDeserializer,Use the configuration above,It works 
properly.And there is no need to provide 'schema.registry.url',For example, we 
can use the JdbcbasedSchemaProvider to get the sourceSchema
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to