Kafka: Does Confluent’s HDFS connector support Snappy compression?

此生再无相见时 提交于 2019-12-11 16:20:07

问题


I don't see any configurations for compression on the HDFS connector docs https://docs.confluent.io/current/connect/connect-hdfs/docs/configuration_options.html.

  • Does it support compression?
  • If yes, what do I need to add in the properties file?

回答1:


Snappy compression was recently added to the HDFS Connector for Avro. To enable it you'll need to set the property avro.codec to snappy.

With Parquet it's been available since the beginning and it is the codec used when exporting parquet files.

Here's the PR that added it for Avro:

https://github.com/confluentinc/kafka-connect-hdfs/pull/255

This config property will become available in the forthcoming 4.1.0 release of the connector. That's also when the link to the docs will be updated to reflect this addition.



来源:https://stackoverflow.com/questions/49139574/kafka-does-confluent-s-hdfs-connector-support-snappy-compression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!