Kafka server contains messages but consumer cannot receive any(producer used compression.type=snappy) -
i newbie in kafka
.when using kafka 0.9.0, can set codec setting compression.type
property of kafka producer.
suppose use snappy
compression in producer, when consuming messages kafka using kafka-consumer, should decode data snappy or built-in feature of kafka consumer?
in office doc, not find property relates encoding in kafka consumer (it relates producer).
can clear this?
as mentioned in wiki page,there no need decompression logic on consumer side
:
please have @ wiki page below:
https://cwiki.apache.org/confluence/display/kafka/compression
the data received consumer topic might contain both compressed uncompressed messages. consumer
iterator transparently
decompresses compressed
data , returns uncompressed message
.
Comments
Post a Comment