Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Apache Nifi in Ubuntu Linux - DesignLinux

May 03 2021
designlinux 0 Comments

Apache NIFI is an open-source scalable tool to manage transformation, data routing, and system mediation logic. To put it in layman’s terms nifi simply automates the flow of data between two or more systems.

It is cross-platform and written in Java that supports 180+ plugins that allow you to interact with different kinds of systems. In this article, we will take a look at how to set up Nifi on Ubuntu 20.04 and Ubuntu 18.04.

Java is mandatory for nifi to work. By default, Ubuntu comes with OpenJDK 11. To check the java version run the following command.

$ java -version
Check Java Version in Ubuntu
Check Java Version in Ubuntu

If your distribution does not have java installed take a look at our comprehensive article on how to install Java on Ubuntu.

Installing on Apache Nifi in Ubuntu

To install nifi on Ubuntu, you need to download the Nifi tar file or use the wget command from the terminal to download the file. The file size is around 1.5GB so it will take some time to complete the download depending upon 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 whatever location you want.

$ sudo tar -xvzf nifi-1.13.2-bin.tar.gz

Now you can go into the 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 below command to check if softlink works fine. In my case, it is working fine.

$ whereis nifi
$ sudo nifi status
Check Apache Nifi Status
Check Apache Nifi Status

You may encounter the below warning if you have not set up the Java home properly.

Java Home Not Set
Java Home Not Set

You can suppress this warning by adding Java home in nifi-env.sh file present in the same bin directory.

$ sudo nano nifi-env.sh

Add Java_Home path as shown.

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
Add Java Home to Nifi
Add Java Home to Nifi

Now try starting nifi and you will not see any warning.

$ sudo ./nifi.sh start
Start Apache Nifi Service
Start Apache Nifi Service

Nifi is a web-based tool so you can choose your favorite browser and type the following URL to connect to Nifi.

$ localhost:8080/nifi
Open Apache Nifi Web
Open Apache Nifi Web

To stop the nifi process run the following command.

$ sudo nifi stop     → Soft link
$ sudo nifi.sh stop  → From bin directory
Stop Apache Nifi Service
Stop Apache Nifi Service

That’s it for this article. Please use the comment section to share the feedback. We would love to hear from you.

Related

Tags: Apache Nifi, Ubuntu Tips

LFCA: Learn Serverless Computing, Benefits and Pitfalls – Part 15

Prev Post

How to Install and Setup Apache Spark on Ubuntu/Debian

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 78
  • 605,828

DesignLinux.com © All rights reserved

Go to mobile version