Francois,

very nice. Thanks.

I have been working on a simple version a while ago. But it had another scope: 
I wnated to have a Nifi processor to merge CSV data with a template from a 
template engine (e.g. Apache Velocity). I will review my code and have a look 
at your processor.

Where can we get it? Github?

Rgds,

Uwe

> Gesendet: Mittwoch, 19. Oktober 2016 um 11:10 Uhr
> Von: "François Prunier" <francois.prun...@hurence.com>
> An: dev@nifi.apache.org
> Betreff: CsvToAttributes processor
>
> Hello Nifi folks,
> 
> I've built a processor to parse CSV files with headers and turn each 
> line in a flowfile. Each resulting flowfile has as many attributes as 
> the number of columns. Each attributes has the name of a column with the 
> corresponding value for the line.
> 
> For example, this CSV file:
> 
> |col1,col2,col3 a,b,c d,e,f |
> 
> would generate two flowfiles with the following attributes:
> 
> |col1 = a col2 = b col3 = c |
> 
> and
> 
> |col1 = d col2 = e col3 = f |
> 
> As of now, you can configure the charset plus delimiter, quote and 
> escape character. It's based on the commons-csv parser.
> 
> It's very handy if you want to, for example, index a CSV file into 
> elasticsearch.
> 
> Would you guys be interested in a pull request to add this processor to 
> the main code base ? It needs a bit more documentation and cleanup that 
> I would need to add in but it's already successfully used in production.
> 
> Best regards,
> -- 
> *François Prunier
> * *Hurence* - /Vos experts Big Data/
> http://www.hurence.com
> *mobile:* +33 6 38 68 60 50
> 
>

Reply via email to