Skip to content

everwatchsolutions/aces-nifi-processors-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACES Custom Apache NiFi Processors

We have found need to create some extensions to Apache NiFi in order to solve some problems the built in processors don't solve for us.

Processors

Here is a list of available processors:

MongoDB

  • PartialUpdateMongo - Allows you to use $set, $addToSet-$each for adding elements in arrays, $currentDate, and $inc. Additionally, you can reference a parent-child relationship now with dot notation as in parent.child for $set and $addToSet. You can use this one one child dimension only for now w/ dot notation.
  • PutMongoWithDuplicationCheck - Extends the PutMongo Processor and adds a new "already-exists" relationship if the document with the same key already exists in mongo

JSON

  • BetterAttributesToJSON - We took some of the original goals that we thought the provided AttributesToJSON should have and added to those by allowing you to more exactly specify whether the attribute in outputted-JSON format should be a String, Integer, Double, or Date. The current existing AttributesToJSON processor falls well below the needs we have by only outputing things in String form. You simply list the FlowFile expression variables in the corresponding String, Integer, Double, and Date lists and let this processor do the rest. Dates are expected in Epoch long form down to the millisecond. A Boolean when listed in the String list will automatically be converted to a Boolean in the output.
  • ConvertSecurityMarkingAndAttrListIntoJson - This will take in a raw security marking from a file along with lists of other flow attributes. The raw security marking will be converted into a Classification JSON object. The other flow attributes will be included in the JSON conversion.

Sockets

  • SocketIO - Allows you to broadcast the body of a FlowFile to a SocketIO server. Custom emit events can come from flowfile attributes.

Building

Clone this repository and then:

git clone git@github.com:acesinc/aces-nifi-processors-bundle
cd aces-nifi-processors-bundle
mvn clean install
mvn clean install -Denforcer.skip=true  (If this is a snapshot release)

You will then need to copy the nar file into you nifi/lib directory

cp aces-nifi-nar/target/aces-nifi-nar-1.22.0.nar /path/to/nifi-1.22.0/lib/

About

Custom Processors for Apache NiFi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages