I have been trying to find sample code for Spring Boot Kafka Camel Avro consumer with no luck. I have found Spring Camel Kafka Consumer and producer sample at the following url:
https://thysmichels.com/2015/09/04/apache-camel-kafka-spring-integration/
But what is missing is the Avro part. I am looking at Camel documentation for avro here:
http://camel.apache.org/avro.html
My specific question is once my bean is created from the Avro Schema and I have the POJO classes, how do I tell camel for spring example above to user Avro serialization? Specifically I am referring this line of code: from("kafka:localhost:9092?topic=test&zookeeperHost=localhost&zookeeperPort=2181&groupId=group1&serializerClass=kafka.serializer.StringEncoder").bean(kafkaOutputBean.class);
Where the serializer is StringEncoder. How do I tell Camel to use Avro serialization?
serializerClass=...
be where you put it? e.g.&serializerClass=avro.serializer.StringEncoder
– jny