Created 05-08-2018 12:55 PM
I am trying to read messages from IBM MQ to HDFS using Nifi. I was successful in doing so. I am using an UpdateAttribute processor to save the incoming messages in a file and then dump this file to HDFS. File contains all the messages, the only issue is that my messages are getting appended in a single line. I want one message per line. How do I go about doing that?
Any help will be appreciated.
Created 05-08-2018 01:07 PM
Do you mean MergeContent rather than UpdateAttribute? The former merges incoming flow files' content into outgoing flow file(s), the latter just adds/deletes/changes metadata about the flow files. If you mean MergeContent, try setting the Demarcator field to the newline character (\n), that should separate the incoming messages by a new line.
Created 05-08-2018 01:07 PM
Do you mean MergeContent rather than UpdateAttribute? The former merges incoming flow files' content into outgoing flow file(s), the latter just adds/deletes/changes metadata about the flow files. If you mean MergeContent, try setting the Demarcator field to the newline character (\n), that should separate the incoming messages by a new line.
Created 05-08-2018 05:45 PM
Thanks, It worked!