Apache NiFi I: Up & Running!
As part of our series covering NiFi, after some investigation on this tool was my desire to have this up & running in my local machine so I can give it a try with a classic and famous hello world!
Pre-Requsites:
- In this specific case I’ll be using MacOs X Monterrey
- Docker installed in your local machine
- Seems obvious, but will be needed an internet connection.
How to start?
- In this specific case we’ll be using a pull from docker to get the latest image.
2. As normal with any docker, once pulled and image will be needed to set up a container to make it up & running.
3. Now you should go to https://localhost:8443/ and see the NiFi welcome.
4. No worries let’s recover your user and password, will be easy enough just getting into the container, directing to logs and grep by Generated just to voila!
Once we get into something like the next image, should be needed just to proceed on the helloWorld classic example. For this specific case we’re gonna be using just processors.
- First of all we’ll make use of GenerateFlowFile processor, make sure about opening the configure options and make available custom text as: “Hello World! From inside NiFi”
2. Make sure about bringing into our place PutFile processor, and make configuration looking like the next screen:
3. Connect bot of them, and execute them:
4. Voilá! Hello world from NiFi.