From the course: Data Management with Apache NiFi

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Updating attributes and writing files

Updating attributes and writing files - Apache NiFi Tutorial

From the course: Data Management with Apache NiFi

Updating attributes and writing files

- [Instructor] There are a few more processors that we need to add and configure before this data flow is complete. Our objective is to write out the grouped aggregated data as a CSV file on our local file system. For every FlowFile that's processed using this data flow, grouped, and aggregated, what should be the name of the final CSV file that we write out to the local file system? Well, this is what we're going to specify using UpdateAttribute. The UpdateAttribute processor uses something known as the Attribute Expression Language to update the attributes associated with the FlowFile. This is the processor that I'm going to add to my data flow canvas. In Apache NiFi, the filename attribute refers to a metadata attribute associated with a FlowFile that is processed using a specific processor in a data flow. I'm now going to update the filename attribute using the UpdateAttribute processor. Here within properties, I'm…

Contents