Created on 09-13-2016 09:45 PM
In this tutorial, we will learn how configure MiNiFi to send data to NiFi:
NOTE: The above installation guide is for HDF 18.104.22.168, this is the version that matches Apache MiNiFi 0.0.1. Although HDF 2.0 may work, for this exercise -- it is not recommended at this time.
Now that you have NiFi up and running it is time to download and install MiNiFi.
Figure 1. MiNiFi download page
For this tutorial I have downloaded the tar.gz on a Mac as shown above in
The image below show MiNiFi downloaded and installed in this directory:
NOTE: Before starting NiFi we need to enable Site-to-Site communication. To do that do the following:
Now that we have NiFi up and running and MiNiFi installed and ready to go, the next thing to do is to create our data flow. To do that we are going to first start with creating the flow in NiFi. Remember if you do not have NiFi running execute the following command:
Now we should be ready to create our flow. To do this do the following:
Figure 2. Empty NiFi Canvas
Figure 3. Adding the Input Port
Figure 4. Adding the LogAttribute processor
Figure 5. NiFi Flow
Figure 6. Adding the Remote Processor Group
Figure 7. Adding GenerateFlowFile Connection to Remote Processor Group
Figure 8. Adding GenerateFlowFile Connection to Remote Processor Group
Figure 10. Template button
Figure 11. Saving a template
bin/config.sh transform <INPUT_TEMPLATE> <OUTPUT_FILE>
bin/config.sh transform MiNiFi_Flow.xml config.yml
minifi-0.0.1/confdirectory. That is the file that MiNiFi uses to generate the nifi.properties file and the flow.xml.gz for MiNiFi.
You should be able to now go to your NiFi flow and see data coming in from MiNiFi.