Reputation: 1366
I am using KafkaSpout to consume messages from Kafka.
The messages are produced with org.apache.kafka.clients.producer.KafkaProducer
With gzip compression props.put(ProducerConfig.COMPRESSION_TYPE_CONFIG, "gzip");
How do i set the compression type in KafkaSpout to consume the uncompressed messages?
Upvotes: 0
Views: 156
Reputation: 4372
gzip compression is handled automatically. If it is a text file then you can directly read with an input stream or for XML files you parse it as regular files.
Property props.put(ProducerConfig.COMPRESSION_TYPE_CONFIG, "gzip");
is not required.
If there are any errors, please post it.
Upvotes: 0