Apache NiFi – the dataflow platform I hadn’t heard of

Last updated: December 2, 2026

I am fairly familiar with data integration and application integration platforms, including many of the traditional ETL tools. Maybe a little less with the ingestion side of things…

Apache NiFi came onto my radar recently, and I decided to have a go at it. For a first experiment, I tried something simple, pick up files from a local directory, copy them to another directory, and upload them to an AWS S3 bucket.

A small flow, but enough to understand how the pieces fit together.

NiFi provides a browser based interface for building and running dataflows. We add processors to a canvas, configure them, and connect them to define how data moves through the flow. An interesting thing, quite different than other tools I used, is that we can monitor on the same canvas the real time execution and metrics of what is happening.

On macOS, installation is straightforward with Homebrew:

brew install nifi

Then start it:

nifi start

With the default configuration, the interface is available at:

https://localhost:8443/nifi

NiFi generates a username and password and writes them to logs/nifi-app.log, relative to the installation directory. Look for the entries containing Generated Username and Generated Password.

Once logged in, the first step is to create a Process Group. This gives the flow its own space and helps keep the main canvas organised as more flows are added.

Open the group, and there is a blank canvas ready for the processors.

A processor performs a particular operation: discovering files, reading their contents, transforming data, or sending it somewhere.

For this example, the flow I will create uses 4 processors:

ProcessorPurpose
ListFileDiscover files in the input directory
FetchFileRead the contents of those files
PutFileWrite a copy to a local output directory
PutS3ObjectUpload the contents to S3

Start by configuring ListFile with the input directory.

Connect its success relationship to FetchFile. The latter can use the attributes supplied by ListFile to locate the source:

${absolute.path}/${filename}

After fetching the content, connect the success relationship to both destination processors:

ListFile → FetchFile ─┬→ PutFile
                     └→ PutS3Object

This sends the data down both branches. There is no need to add a separate processor just to duplicate it.

For the local branch, configure PutFile with an output directory separate from the directory being monitored.

For the S3 branch, create a bucket to receive the files.

Configure PutS3Object with the bucket name, region, and an AWS credentials provider with permission to upload objects. The object key can use ${filename} to retain the original filename.

Once we start the processors, the files being dropped in the input folder will quickly be picked up and moved to their end destinations. This is a simple exercise, but it was fairly easy to setup and shows that NiFi is a powerful tool.

NiFi sweet spot is ingesting and moving data between systems while maintaining control and visibility over the flow. It can handle transformations along the way, but large scale processing/transformation is better managed by tools like Apache Spark.

Be the first to comment

Leave a Reply

Your email address will not be published.


*