NiFi Installation (Basic)

(Last Updated On: )

In this tutorial I will guide you through installing NiFi on Ubuntu 16.04 and setting to run as a service. We will assume you have a user called “hduser”.

Install Java 8

  1. sudo apt-get install openjdk-8-jdk

Install NiFi

  1. wget http://mirror.dsrg.utoronto.ca/apache/nifi/1.8.0/nifi-1.8.0-bin.tar.gz
  2. tar -xzf nifi-1.8.0-bin.tar.gz
  3. sudo mv nifi-1.8.0/ /usr/local/nifi

Set Ownership:

  1. sudo chown -R hduser:hduser /usr/local/nifi

Setup .bashrc:

  1. sudo nano ~/.bashrc

Add the following to the end of the file.

#NIFI VARIABLES START
export NIFI_HOME=/usr/local/nifi
export NIFI_CONF_DIR=/usr/local/nifi/conf
export PATH=$PATH:$NIFI_HOME/bin
#NIFI VARIABLES STOP

  1. source ~/.bashrc

Install NiFi As Service

  1. cd /usr/local/nifi/bin
  2. sudo ./nifi.sh install
  3. reboot

Start/Stop/Status Service

  1. sudo service nifi start
  2. sudo service nifi stop
  3. sudo service nifi status

Your site is now available http://localhost:8080/nifi

Uninstall

  1. sudo rm /etc/rc2.d/S65nifi
  2. sudo rm /etc/init.d/nifi
  3. sudo rm /etc/rc2.d/K65nifi
  4.  
  5. sudo rm -R /usr/local/nifi/

One thought on “NiFi Installation (Basic)”

Comments are closed.