From the course: Data Management with Apache NiFi

Unlock this course with a free trial

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

Configuring the ReplaceText processor

Configuring the ReplaceText processor - Apache NiFi Tutorial

From the course: Data Management with Apache NiFi

Configuring the ReplaceText processor

- [Instructor] Before we write out the data to our database table, we need to replace the NA values with empty strings. And we'll do this with a separate processor. So I've gotten rid of the connection between GetFile and PutDatabaseRecord. Let's add a new processor, and this processor is called ReplaceText. ReplaceText will allow you to replace the text within the content of your flow file with some other text of your choosing. Let's add this processor and make it part of our dataflow. I'm going to connect the output of GetFile to ReplaceText. So on success, GetFile will send the flow file to ReplaceText, where we'll replace the NA values that exist in our numeric column. Double-click on ReplaceText to bring up the dialogue to configure this processor. First, Scheduling. Now, you can have this run each time a flow file is available, but I'm only going to run ReplaceText every 20 seconds. So we'll pause a bit before…

Contents