Re: How to add headers to CSV file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Re: How to add headers to CSV file

Carl Berndt
It is possible to use ConvertRecord with a CSVRecordSetWriter.
There is a property "include header line" true/false on that processor.
hope that helps. 

On Wed, Aug 2, 2017 at 2:36 AM, mayank rathi <[hidden email]> wrote:
Hello All,

I am working on a NiFi flow to read data from a database and dump it into a CSV file.

I will use ExecuteSQL to read data and PutFile to generate CSV file.

Which processor can I use to add header to this CSV file?

Thanks in advance

NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.