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 an InvokeHTTP processor - Apache NiFi Tutorial
From the course: Data Management with Apache NiFi
Configuring an InvokeHTTP processor
- [Instructor] In this final data flow that we'll be building in this course, we'll read from an HTTP API, pass the response, and write the response out to files. Now the API that we'll hit is this boredapi.com/apiactivity. Each time you hit this API, you'll get a different activity, so you can hit refresh several times and view the different activities. These are the responses that we'll pass and then write out to files. In order to be able to make a get request to an API and read its response, we'll use the InvokeHTTP processor. So let's add a new processor to our canvas in the dialogue that comes up, search for InvokeHTTP. This allows you to make all kinds of HTTP requests, get, put, post, and so on. We'll be making get requests. So let's configure this processor. Now let's head over to scheduling. I'm going to have it run every 30 seconds so that we are not constantly pounding that URL. Next, we'll head over…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Configuring back pressure3m 25s
-
(Locked)
Observing the effects of back pressure4m 30s
-
(Locked)
Configuring an InvokeHTTP processor5m 10s
-
(Locked)
Using a funnel in the dataflow4m 55s
-
(Locked)
Running the dataflow to read from URL and write to files1m 53s
-
(Locked)
Setting up monitoring for the dataflow2m 15s
-
(Locked)
Configuring alerting for the dataflow5m 5s
-
(Locked)
Email alerts on dataflow success3m 52s
-
(Locked)
Email alerts on change in activity status2m 40s
-
(Locked)
-