Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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!