• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Apache NiFi On Ubuntu 22.04 LTS

By Abhishek Ghosh May 28, 2023 10:11 am Updated on May 28, 2023

How To Install Apache NiFi On Ubuntu 22.04 LTS

Advertisement

This is an updated guide on installation of Apache NiFi. Version 1.21.0 is the latest. It was built by NSA to automate the flow of data between their systems. Nifi is a Java based project and executes within a JVM. The biggest advantage is that, it has a web based interface to create, monitor and control data flow. You’ll get a good documentation on limits here:

Vim
1
https://wiki.archlinux.org/title/Limits.conf

Now, the steps to install Apache Nifi.

Vim
1
2
apt update
apt upgrade

We will edit /etc/security/limits.conf :

Advertisement

---

Vim
1
nano /etc/security/limits.conf

Find the entries and change the values like this :

Vim
1
2
3
4
5
6
7
* hard nofile 50000
 
* soft nofile 50000
 
* hard nproc 10000
 
* soft nproc 10000

We also need to run :

Vim
1
2
sudo sysctl -w net.ipv4.ip_local_port_range="10000 65000"
sudo sysctl -w net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait="1"

Your distribution may need to edit /etc/security/limits.d/90-nproc.conf :

Vim
1
*  soft  nproc  10000

Edit /etc/sysctl.conf to add the following line :

Vim
1
vm.swappiness = 0

After saving, reboot the system.

 

How To Install Apache NiFi On Ubuntu 16.04 LTS

 

We are showing minimal way to run Apache NiFi. You’ll get the latest version from here :

Vim
1
https://nifi.apache.org/download.html

Apache NiFi needs a Java runtime environment and a user with sudo privilege. In the example, we will use the user name nifi. The command adduser will automatically create the user, initial group, and home directory. Run these commands one by one :

Vim
1
2
3
adduser nifi
id nifi
ls -lad /home/nifi/

Now we will set the user for sudo permission to allow to be in suoders list :

Vim
1
echo 'nifi ALL=(ALL) ALL' >> /etc/sudoers

Type exit to exit the session and run command SSH with that username :

Vim
1
ssh nifi@your-IP-addresss

After login, type :

Vim
1
sudo su

Now you’ll become root user. Now, you may be in need in future to close the way for nifi to SSH. Open this file :

Vim
1
nano /etc/ssh/sshd_config

You’ll add entry of kafka to SSH if needed by having syntax like this :

Vim
1
DenyUsers nifi

save the file. Run these commands :

Vim
1
2
/etc/init.d/sshd restart
sudo service ssh restart

During initial installation do not do the changes in /etc/ssh/sshd_config. You’ll install the software by SSH to the system as any permitted user and run su nifi to become nifi.

Next we will install Java. There are two ways, one is using oracle-java8 :

Vim
1
2
3
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt update
apt install oracle-java8-installer -y

Another is the default Java Run Time provided by apt :

Vim
1
apt install default-jre

Follow the way you want. Verify that JDK 8 is installed properly

Vim
1
java -version

Now NiFi specific steps :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
su nifi
cd ~
## wget latest nifi
## change the values of x,y in version number
tar xvzf nifi-x.y.0-bin.tar.gz
rm nifi-x.y.0-bin.tar.gz
ls -al
# for compatibility with other tutorials
ln -s  ~/nifi-1.y.0/ /opt/nifi-1.y.0/
ln -s  ~/nifi-1.y.0/ /opt/nifi-latest
# chown
chown -h nifi. /opt/nifi-latest
chown -R nifi. ~/nifi-1.y.0/

The main configuration is nifi.properties file :

Vim
1
nano /opt/nifi-latest/conf/nifi.properties

The default 8080 is used by Tomcat.

Set JAVA_HOME :

Vim
1
2
3
4
5
6
nano .bash_profile
# Add, change x.y.x to real
## export JAVA_HOME=/etc/alternatives/java_sdk_x.y.x_openjdk
# or
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
source ~./bashrc

Start/Stop Apache NiFi :

Vim
1
2
/opt/nifi-latest/bin/nifi.sh install
/opt/nifi-latest/bin/nifi.sh start

Open a browser window and verify that you can access NiFi :

Vim
1
http://IP-Address:8080/nifi

How To Install Apache NiFi On Ubuntu 2204 LTS

You really should use official guides :

Vim
1
2
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#how-to-install-and-start-nifi
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Apache NiFi On Ubuntu 22.04 LTS

  • How To Install Apache NiFi On Ubuntu 16.04 LTS

    Apache NiFi Enables Automation of Real Time Data Flow Between Systems. Here Is How To Install Apache NiFi On Ubuntu 16.04 LTS on Cloud Server.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install Elastic Stack on Ubuntu 16.04, CentOS 7 Single Cloud Server

    Here is How to Install Elastic Stack on Ubuntu 16.04, CentOS 7 on Single Cloud Server Instance For Server Log Analysis, Big Data Processing.

  • How Install Apache Cassandra on Ubuntu (Single Cloud Server Instance)

    Here Are the Steps on How Install Apache Cassandra on Ubuntu Single Cloud Server Instance. Cassandra is a distributed wide column store NoSQL DBS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy