top of page

Installing Apache Nifi in Ubuntu

  • arjun5792
  • Oct 17, 2022
  • 1 min read

In this article, we'll look at how to set up Apache Nifi on Ubuntu. We at Skynats can take care of your Ubuntu issues with our Server Management Services.


Apache Nifi on Ubuntu


Apache Nifi was created to make transferring data between computer programs easier. The flow-based programming model is the foundation for the software's design. It has these characteristics:


  • Cluster-working capability

  • TLS encryption provides security.

  • Extensibility and improved usability


Today, we'll look at how to use Apache Nifi on an Ubuntu system.


Apache Nifi configuration on Ubuntu


Java is necessary for Nifi to work. Therefore, we must first configure the Java JDK package. The Java JDK package can be configured with the help of the following command.


apt-get update
apt-get install openjdk-8-jdk

Now use the command below to locate the Java JDK setup directory.


update-alternatives --config java


The next step is to create the environment variable JAVA HOME. To automate the creation of the required environment variables, let's create a file.


vi /etc/profile.d/java.sh


The following is the content of the java.sh file:


#/bin/bash
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64


Now restart the system.


reboot


To check if the JAVA HOME variable was created, run the command below.


env | grep JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64


Use the command “ to test the Java setup:


java -version


Currently, Apache Nifi needs to be downloaded. So go ahead and download the Nifi tar file. If not, download the file from the terminal using the wget command.


mkdir /downloads/apache-nifi -p
cd /downloads/apache-nifi
wget https://downloads.apache.org/nifi/1.13.2/nifi-1.13.2-bin.tar.gz



Now configure Apache Nifi on Ubuntu.


tar -zxvf nifi-1.13.2-bin.tar.gz
mv nifi-1.13.2 /opt/
ln -s /opt/nifi-1.13.2/ /opt/nifi
cd /opt/nifi
bin/nifi.sh install



Start the Nifi service.



/etc/init.d/nifi start



The following is the outcome:



Java home: /usr/lib/jvm/java-8-openjdk-amd64
NiFi home: /opt/nifi-1.13.2Bootstrap Config File: /opt/nifi-1.13.2/conf/bootstrap.conf



Open a browser and enter the IP address of the Apache Nifi server, plus:8080/nifi. E.g.,



http://192.168.15.10:8080/nifi/


Recent Posts

See All

Commentaires


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Server Management. Proudly created with Wix.com

bottom of page