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.

Email alerts on change in activity status

Email alerts on change in activity status - Apache NiFi Tutorial

From the course: Data Management with Apache NiFi

Email alerts on change in activity status

- [Instructor] Now let's see if we can receive the alerting email which we'd get if the data flow has been inactive or when the activity is restored. Let me first configure the monitor activity processor first. If you remember, under properties, we had specified that the threshold is five minutes; this is the default. Now, this threshold determines how much time must elapse before the data flow is considered inactive. Now, five minutes is a long time to wait. So let's set this threshold to be something smaller, like 10 seconds. So if the data flow is inactive for 10 seconds, we'll receive an email. Now I've made the change, let me start the data flow once again. Now, if the data flow is constantly running, this alert should never be triggered. We explicitly have to do something to make the data flow inactive. What I'm going to do is stop the PutFile processor. This essentially means that something is wrong with the…

Contents