How to add customer headers to csv file in NIFI
Hi,
I want to add headers to a csv file. I have used Replace text processor for this purpose.
But final output just append headers to the first line.
eg:
Sample :
2-Dec-15,Mumbai,120
Expected output :
date,city,temp
2-Dec-15,Mumbai,120
Output :
date,city,temp2-Dec-15,Mumbai,120
I have tried both ways by adding '\n' and 'shift+enter' after the header line
id,name,site,score\n
id,name,site,scoreshift+enter as the replacement value,
but no luck instead \n and shift+enter was taken as a value.
Could anyone help to resolve this issue.



