I want to actually build a custom processor in Nifi from a Github Repo(GIT Hub repo link) and i followed the below steps:-
@Vaibhav Kumar The NAR file should go to the lib directory and not the bin directory. Place your nar archive in the lib directory and restart your NiFi cluster. If your code is error free, you should be able to use your custom processor.
Hope that helps!
In the article that you followed https://community.hortonworks.com/articles/4318/build-custom-nifi-processor.html to Build custom processor there is a bug i.e author mistakenly stated after creating .nar file then copy the .nar file to bin directory but we need to copy that .nar file to lib directory, that would be the root cause why you are not able to see the custom processor in nifi.
As i tried to recreate the whole scenario you did and i'm able to get the Custom ExtractTextProcessor after placing the .nar in lib directory.bin directory contains all executable(shell script,batch) files i.e to start/status/stop nifi service
dump-nifi.bat nifi-env.bat nifi-env.sh nifi.sh run-nifi.bat status-nifi.bat
Please refer to below for more details
Here is what i tried:-
As you did all the steps, just copy the .nar file to lib directory and restart the nifi then you are able to see the new custom extract text processor.
1.Cloned from git into directory
2.go to the cloned directory
3.run maven clean install
mvn clean install
once the install completes
4. Copy the nifi-extracttext-nar-1.5.nar file to NiFi /lib directory
5. Restart NiFi then you can find the new custom ExtractTextProcessor.
Let us know if you are facing any issues ..!!
If you look at the article I have written about my processor, you can see it says drop it in the lib and restart.
Here is the new article about the latest version of the processor:
This has been tested on OSX and Centos7 NiFi 1.5 and HDF 3.1 NiFi