This is an unofficial Apache NiFi Docker image
Apache NiFi requires a Java runtime. Starting with the 0.4.0 release, I am producing multiple images that each use a different base Java images.
Both the 0.3.0 and 0.2.1 versions use java/8 as their base image.
The latest version of NiFi is the 0.4.0 release (December 11th 2015). The release notes can be found here.
The latest image is the same as the 0.4.0-openjdk-8 image.
This image is available on Docker Hub at mkobit/nifi.
To run this image and play around with NiFi:
-
Pull
latest
imagedocker pull mkobit/nifi
-
Run image and expose default ports to host.
# --rm : remove container on exit # -i : interactive # -t : allocate TTY # -p : publish each container port to host port. format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort docker run -it --rm -p 8080-8081:8080-8081 mkobit/nifi
-
Go to default local NiFi endpoint in browser - http://localhost:8080/nifi/
This can easily be used as a base image to create NiFi applications. One way would be to build a NAR with extensions built upon the framework and including it in your own image. I recommend reading the Developer's Guide if you want to head down this route.
These are the default locations as specified by the Apache NiFi properties. You can find more information about each of these repositories on the System Administration Guide
$NIFI_HOME/database_repository
- user access and flow controller history$NIFI_HOME/flowfile_repository
- FlowFile attributes and current state in the system$NIFI_HOME/content_repository
- content for all the FlowFiles in the system$NIFI_HOME/provenance_repository
- information related to Data Provenance
- Overview
- User Guide
- Expression Language
- Development Quickstart
- Developer's Guide
- System Administrator
The standard library has a built-in processor for an HTTP endpoint listener. That processor is named ListenHTTP
. You should set the Listening Port to 8081 if you follow the instructions above to run this image.
This image can either be used as a base image for building on top of NiFi or just to experiment with the tool.
If you have any problems, comments, or questions with this image, feel free to reach out at mkobit/docker-nifi. If you have Apache NiFi specific questions or concerns you can reach out on one of the community mailing lists.
Contributing changes to this repository is extremely welcome. If it is a larger change, it is usually best to discuss your plans first. Please see the Github issues to see if a similar issue already exists.
The Apache NiFi source code can be found on Github at apache/nifi. You can browse issues related to the project on the Apache NiFi Jira.