Created 04-28-2017 09:17 AM
Hello,
I want to create data flow to execute external command, get result from it, put it to file, parse it and save result to new file.
Can it be done using build-in processors? Or I should write my own?
For example I see that I can use: PutFile, ExecuteProcess,
but for parsing file using regexp expressions for example, I don't know how to do it.
Thank you very much for your help.
Created 04-28-2017 02:41 PM
Take a look at the ExtractText processor and see if it meets your needs:
Created 04-28-2017 02:41 PM
Take a look at the ExtractText processor and see if it meets your needs:
Created on 04-28-2017 03:39 PM - edited 08-17-2019 08:27 PM
I can't find where to add regexp patterns here.
Created on 04-28-2017 06:02 PM - edited 08-17-2019 08:27 PM
You can right click on any NiFi processor and select "usage" to get the complete documentation on that processor. Any processor documentation that states it supports "Dynamic Properties" will allow you to add additional properties in the documented format.
To add an additional property simply click on the following icon on the properties tab:
Thanks,
Matt
Created 05-01-2017 03:16 PM
@Gu Gur And just to add a little detail to Matt's comment, from the documentation,
Regular Expressions are entered by adding user-defined properties; the name of the property maps to the Attribute Name into which the result will be placed.