Open phreed opened 6 months ago
https://bryanbende.com/development/2015/02/04/custom-processors-for-apache-nifi
Deploying a processor bundle consists of copying the nar to NIFI_HOME/lib, and restarting NiFi.
Build the nifi-helloworld-bundle:
cd nifi-helloworld-bundle mvn clean install Copy the nar to NIFI_HOME/lib:
cp nifi-helloworld-nar/target/nifi-helloworld-nar-1.0-SNAPSHOT.nar NIFI_HOME/lib/ Start NiFi:
NIFI_HOME/bin/nifi.sh start Open a browser and navigate to http://localhost:8080/nifi
Drag a new processor on to the flow using the Processor icon in the top-left
Start typing MyProcessor in the Filter box
Use https://github.com/apache/nifi/tree/main/nifi-nar-bundles/nifi-groovyx-bundle as a model.