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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]