phreed / nifi-nar-pythonx

A NiFi NAR Python Script Processor
0 stars 0 forks source link

Initialize NAR #1

Open phreed opened 6 months ago

phreed commented 6 months ago

Use https://github.com/apache/nifi/tree/main/nifi-nar-bundles/nifi-groovyx-bundle as a model.

mvn archetype:generate
mvn archetype:generate -DarchetypeGroupId=org.apache.nifi -DarchetypeArtifactId=nifi-processor-bundle-archetype -DarchetypeVersion=1.0-SNAPSHOT -DnifiVersion=2.0.0-M2
phreed commented 6 months ago

Deploying a Processor Bundle

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