You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/08/28 03:52:41 UTC

[GitHub] [hudi] dongkelun commented on pull request #3502: [HUDI-2320]Add support ByteArrayDeserializer in AvroKafkaSource

dongkelun commented on pull request #3502:
URL: https://github.com/apache/hudi/pull/3502#issuecomment-907561959


   > @dongkelun Can you please help me understand the use case? I want to know what kind of data you are pushing using ByteArraySerializer.
   
   @pratyakshsharma  Hi,The main parameters of Kafka producer are:
   
   ```java
       val props = new Properties()
       props.put("bootstrap.servers", "192.168.44.128:9092")
       props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer")
       props.put("value.serializer", "org.apache.kafka.common.serialization.ByteArraySerializer")
   ```
   See this example for detailed codeļ¼š[AvroSerializerProducerTest ](https://github.com/dongkelun/AvroDemo/blob/master/src/main/java/com/dkl/blog/avro/kafka/AvroSerializerProducerTest.scala).And See this for the demo of consumer:[kafkaConsume](https://github.com/dongkelun/AvroDemo/blob/master/src/main/java/com/dkl/blog/avro/kafka/kafkaConsume.scala)


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org