Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Adding newline when using mergecontent processor to combine csv flowfile

Highlighted

Adding newline when using mergecontent processor to combine csv flowfile

I am afraid this is very basic question but could not find an answer after spending a couple of hours. So I post the question here.


I'd like to add newlife when merging different csv flowfile with MergeContent so that output would be in right shape.

I stumbled upon a couple of articles but none of them did not work like the following link.

https://stackoverflow.com/questions/34257508/apache-nifi-mergecontent-processor-set-demarcator-as-ne...

Here is my configuration.

I tried shift+enter, \n and so on, but could not get the output which I need..

I super appreciate if you tell me how to do this.

108861-1558514788632.png

Thank you in advance

2 REPLIES 2
Highlighted

Re: Adding newline when using mergecontent processor to combine csv flowfile

The above was originally posted in the Community Help Track. On Wed May 22 16:52 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself.

Bill Brooks, Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Re: Adding newline when using mergecontent processor to combine csv flowfile

Cloudera Employee

zzeng_0-1586268295257.png

 

1) Demarcator, use

${literal('
'):unescapeXml()}

2) Delimiter Strategy = Text

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here