Skip to main content
derek_calderon
Bronze ⭐️⭐️⭐️
Apr 2, 2019 12:57 AM UTC
Solved

Can I store more than one record in a parquet file using ConvertAvroToParquet?

I have created a flow to read json messages from kafka, and covert them to avro so that I can use ConvertAvroToParquet. My issue is that I can only store one avro message in a parquet file. Is there away to store multiple records within a parquet file using ConvertAvroToParquet?

mburgess
mburgessAnswer
Gold ⭐️⭐️⭐️
Apr 2, 2019 8:27 PM UTC

You can use MergeContent or MergeRecord for this, it can take flow files each with a single record and combine them together to make a flow file containing many Avro records, then you can use ConvertAvroToParquet or PutParquet.

1 reply

mburgess
Gold ⭐️⭐️⭐️
mburgessAnswer
Gold ⭐️⭐️⭐️
Apr 2, 2019 8:27 PM UTC

You can use MergeContent or MergeRecord for this, it can take flow files each with a single record and combine them together to make a flow file containing many Avro records, then you can use ConvertAvroToParquet or PutParquet.

Translate