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

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…

Contents