How to configure confluent kafka rest serializer?

时间:2016-10-20 19:21:30

标签: rest apache-kafka confluent

Is it possible to change confluent kafka-rest serializer? I want to swap the confluent avro serializer to my customized serializer, but I checked inside producer-pool(https://github.com/confluentinc/kafka-rest/blob/2.x/src/main/java/io/confluent/kafkarest/ProducerPool.java).

When building buildAvroProducer it ask for KafkaAvroSerializer, which is a confluent lib. So it seems not possible to customize it without code changes(like simply swap jar in classpath or sth) Not sure whether this requirement is fair or not, and wondering whether it is on the road map or not.

1 个答案:

答案 0 :(得分:1)

你是对的,目前还不行。序列化程序集被硬编码以映射到一组内容类型。您需要对代码进行更改以支持替代序列化程序。