[ 
https://issues.apache.org/jira/browse/NIFI-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652223#comment-16652223
 ] 

Mohit edited comment on NIFI-5706 at 10/16/18 6:40 PM:
-------------------------------------------------------

[~pvillard] [~bende], to be honest I did not look at ConvertRecord as a 
possible place for ParquetWriter. I found ConvertAvroToParquet like operator 
would make sense, which is highly inspired from ConvertAvroToOrc.

Its true that PositionOutputStream (way to write to OutputStream) is a fairly 
recent feature added by parquet. I found a similar implementation in [Apache 
Beam|https://github.com/apache/beam/blob/master/sdks/java/io/parquet/src/main/java/org/apache/beam/sdk/io/parquet/ParquetIO.java]
 project as well. 

I have been using ConvertAvroToParquet in my deployment for over a month. I 
found this to be quite handy and straightforward, so thought of contributing.

Let me know if you think this processor should best be part of ConvertRecord. I 
will start exploring it. 

 


was (Author: mohitgargk):
[~pvillard] [~bende], to be honest I did not look at ConvertRecord as a 
possible point for ParquetWriter. I found ConvertAvroToParquet like operator 
would make sense, which is highly inspired from ConvertAvroToOrc.

Its true that PositionOutputStream (way to write to OutputStream) is a fairly 
recent feature added by parquet. I found a similar implementation in [Apache 
Beam|https://github.com/apache/beam/blob/master/sdks/java/io/parquet/src/main/java/org/apache/beam/sdk/io/parquet/ParquetIO.java]
 project as well. 

I have been using ConvertAvroToParquet in my deployment for over a month. I 
found this to be quite handy and straightforward, so thought of contributing.

Let me know if you think this processor should best be part of ConvertRecord. I 
will start exploring it. 

 

> Processor ConvertAvroToParquet 
> -------------------------------
>
>                 Key: NIFI-5706
>                 URL: https://issues.apache.org/jira/browse/NIFI-5706
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>    Affects Versions: 1.7.1
>            Reporter: Mohit
>            Priority: Major
>              Labels: pull-request-available
>
> *Why*?
> PutParquet support is limited to HDFS. 
> PutParquet bypasses the _flowfile_ implementation and writes the file 
> directly to sink. 
> We need a processor for parquet that works like _ConvertAvroToOrc_.
> *What*?
> _ConvertAvroToParquet_ will convert the incoming avro flowfile to a parquet 
> flowfile. Unlike PutParquet, which writes to the hdfs file system, processor 
> ConvertAvroToParquet would write into the flowfile, which can be pipelined to 
> put into other sinks, like _local_, _S3, Azure data lake_ etc.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to