An example NiFi Archive (.nar) with some custom Processors
git clonemvn package- Copy
nifi-compose-nar/target/nifi-compose-nar-1.0.0-BETA.narto$NIFI_ROOT/libassuming you took the defaults from the nifi.properties file and that you are running Apache Nifi version 1.0.0-Beta.
For details on these custom Processors please see the following blog (especially the end): What You Need to Know to Extend NiFi
For a general overview of Apache NiFi: Use NiFi to Lessen the Friction of Moving Data
Custom Processors in this bundle:
-
ComposeUniqueRocksDBprovides the ability to locally check for uniqueness of an attribute. It is a persisted index of keys. Useful for local only unlike the de-duplication provided by NiFi viaDetectDuplicateand its required Distributed Cache Service. -
ComposeStreamingGetMongoprovides immediate creation of FlowFiles for each Document prior to the query being finished. This is different thanGetMongowhich only callssession.commit()after the query is completed. -
ComposeBatchPutMongoexposes Mongo'scollection.insertMany(). It takes a FlowFile that has a JSON array of Documents to put into Mongo. -
ComposeTailingGetMongoprovides a snapshot of Mongo database plus a stream of oplog changes in the form of FlowFiles. -
ComposeTailingPutMongoputs the dump from the TailingGet into another Mongo.