Kafka:Confluent的HDFS连接器是否支持Snappy压缩?

编程入门 行业动态 更新时间:2024-10-22 09:40:02
本文介绍了Kafka:Confluent的HDFS连接器是否支持Snappy压缩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我没有在HDFS连接器上看到任何用于压缩的配置文件docs docs.confluent.io/current/connect/connect-hdfs/docs/configuration_options.html 。

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

  • 它支持压缩吗?
  • 如果是,我需要在属性文件中添加什么?
推荐答案

Snappy压缩最近添加到了用于Avro的HDFS连接器中。要启用它,您需要将属性 avro.codec 设置为 snappy 。

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.

Parquet自一开始就可用,它是导出Parquet文件时使用的编解码器。

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

以下是为Avro添加它的PR:

Here's the PR that added it for Avro:

> github/confluentinc/kafka-connect-hdfs/pull/255

此配置属性将在即将发布的连接器4.1.0版本中提供。这也是指向文档链接的更新,以反映此添加。

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.

更多推荐

Kafka:Confluent的HDFS连接器是否支持Snappy压缩?

本文发布于:2023-10-16 05:41:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1496662.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接器   Confluent   Kafka   Snappy   HDFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!