1> to create your own working directory
2> Check if the system has MAVEN and JDK installed
3> Execute command mvn archetype:generate in working directory (you can enter the values you want to set by referencing the contents of the red box)
4> Modify auto-generated programs: newprocessor\scc-processors\nifi-demo-processors\src\main\java\scc\processors\demo\ Myprocessor.java
5> Execute mvn Install command in Artifactid directory
6> Copy the Nifi-demo-nar-1.0.nar file generated by step 5th to the Nifi Lib directory
Newprocessor\scc-processors\nifi-demo-nar\target\nifi-demo-nar-1.0.nar
-
Nifi-1.0.0-bin\lib\nifi-demo-nar-1.0.nar
7> start the Nifi service to test if your own processor is successful
a> start Nifi: Double-click Run-nifi.bat
B> Launch Browser Enter: http://127.0.0.1: (Your Nifi port) in the URL bar/nifi
Nifi How to use eclipse to develop your own processor (top)