A Maven project for building a custom NiFi Archive (.nar). Designed for interoperability with Apache NiFi version 1.18+. The NAR contains a processor and a controller service that allow for manual manipulation of FlowFile attributes / content, in the context of a running NiFi instance.
The controller service instantiates an SSL web server listening on the configured port, providing for user interactivity. Instances of the processor may be added to the canvas, and configured to accept upstream FlowFiles, to examine data associated with the FlowFiles, and to route them to configurable relationships.
The components in this NAR might be useful during flow development to manually debug FlowFile content as it traverses the flow. It is not designed for use in a production flow. Manual intervention is needed to allow data to transit configured ProbeFlow processors. It should be considered to be a debugging aid during flow development, rather than a participating component in a production flow.
My goals in developing this NAR were to familiarize myself with the NiFi processor API and mechanics of custom NAR development, to leverage past experience with similar technologies, and to develop novel components that might be generally useful. I hope others might benefit from this work.
See the NiFi documentation for information about how to incorporate this NAR into your running NiFi instance.
Additional guidance:
In order to provide a secure TLS connection between the ProbeFlow controller service and the browser UI, a valid NiFi
SSLContextService must be defined and enabled. The default keystore and truststore specified in conf/nifi.properties
may be used to specify the parameters of this SSLContextService, or an additional keystore / truststore may be generated
using the NiFi Toolkit.
- Additional details for the ProbeFlow processor may be found here.
- Additional details for the ProbeFlow controller service may be found here.
While testing the output of an upstream component, it is possible to save a set of useful FlowFiles for future testing.
This XML file is an example of such an
archived FlowFile set. It contains a single FlowFile, which specifies five test records. It may be uploaded from the
main page of the ProbeFlow
web interface.
- From the front page of the ProbeFlow web interface, click the "Download / Upload State" link for a running processor.
- Click the "Choose File" button, and select the XML file referenced above.
- Click the "Upload Content" button.
- Navigate to the "viewer" resource for the relevant processor to see the uploaded content.