Installing Apache Nif on Ubuntu Linux
Thank you for reading this post, don't forget to subscribe!
Apache NIFI is an open source scalable tool for managing conversion, data routing, and system relay logic. In layman’s terms, nifi automatically simplifies the flow of information between two or more systems.
It is cross-platform and written in Java 180+ plug-ins that allow you to interact with different systems. In this article, we will look at installation Nifi on Ubuntu 20.04 and Ubuntu 18.04.
Java is required for nifi to work. By default, Ubuntu with OpenJDK 11. Check the Java version by running the following command.
$ java -version
If your distribution has not installed a version of Java, see the comprehensive article on how to install Java on Ubuntu.
Installing Apache Nif on Ubuntu
Install nifi In Ubuntu, you have to download the Nifi tar file or download the file with the terminal wget command. The file size is approx 1.5 GB so it may take some time to complete the download depending on your internet speed.
$ wget https://apachemirror.wuchna.com/nifi/1.13.2/nifi-1.13.2-bin.tar.gz
Now extract the tar file to the desired location.
$ sudo tar -xvzf nifi-1.13.2-bin.tar.gz
Now you can go bin directory under the extracted directory and start the nifi process.
$ sudo ./nifi.sh start
Alternatively, you can create a soft link and change the source directory where you placed your nifi files.
$ sudo ln -s /home/karthick/Downloads/nifi-1.13.2/bin/nifi.sh /usr/bin/nifi
Run the command below to check if the softlink works well. In my case, it works well.
$ whereis nifi $ sudo nifi status
You may encounter the warning below if you have not specified Java home properly.
You can prevent this warning by adding Java at home nifi-env.sh in the same file bin directory.
$ sudo nano nifi-env.sh
Add the Java_Home path as shown.
Now try to get started nifi and you will not see any warning.
$ sudo ./nifi.sh start
Nifi is a web-based tool, so you can select your favorite browser and enter the following URL to connect to Nifi.
Run the following command to end the nifi process.
$ sudo nifi stop → Soft link $ sudo nifi.sh stop → From bin directory
It is in this article. Use feedback in the comments section. We’d love to hear from you.