Skip to main content

ConvertAvroToParquet

描述:

Converts Avro records into Parquet file format. The incoming FlowFile should be a valid avro file. If an incoming FlowFile does not contain any records, an empty parquet file is the output. NOTE: Many Avro datatypes (collections, primitives, and unions of primitives, e.g.) can be converted to parquet, but unions of collections and other complex datatypes may not be able to be converted to Parquet.

标签:

avro, parquet, convert

参数:

如下列表中,必填参数则标识为加粗. 其他未加粗参数,则表示为可选参数。表中同时提到参数默认值设置, 并且 参数还支持 表达式语言.

名字默认值允许值列表描述
Compression TypeUNCOMPRESSED
- UNCOMPRESSED
- SNAPPY
- GZIP
- LZO
- BROTLI
- LZ4
- ZSTD
The type of compression for the file being written.
Row Group SizeThe row group size used by the Parquet writer. The value is specified in the format of <Data Size> <Data Unit> where Data Unit is one of B, KB, MB, GB, TB.

支持表达式语言 (支持流属性和变量)
Page SizeThe page size used by the Parquet writer. The value is specified in the format of <Data Size> <Data Unit> where Data Unit is one of B, KB, MB, GB, TB.

支持表达式语言 (支持流属性和变量)
Dictionary Page SizeThe dictionary page size used by the Parquet writer. The value is specified in the format of <Data Size> <Data Unit> where Data Unit is one of B, KB, MB, GB, TB.

支持表达式语言 (支持流属性和变量)
Max Padding SizeThe maximum amount of padding that will be used to align row groups with blocks in the underlying filesystem. If the underlying filesystem is not a block filesystem like HDFS, this has no effect. The value is specified in the format of <Data Size> <Data Unit> where Data Unit is one of B, KB, MB, GB, TB.

支持表达式语言 (支持流属性和变量)
Enable Dictionary Encoding
- true
- false
Specifies whether dictionary encoding should be enabled for the Parquet writer
Enable Validation
- true
- false
Specifies whether validation should be enabled for the Parquet writer
Writer Version
- PARQUET_1_0
- PARQUET_2_0
Specifies the version used by Parquet writer

连线:

名字描述
successParquet file that was converted successfully from Avro
failureAvro content that could not be processed

读取属性:

未提供。

写入属性:

名字描述
filenameSets the filename to the existing filename with the extension replaced by / added to by .parquet
record.countSets the number of records in the parquet file.

状态管理:

该组件不保存状态。

限制:

该组件没有限制

输入流要求:

组件必须提供输入流。

系统资源考量:

未提供。