• 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 16.04 LTS

By Abhishek Ghosh July 10, 2017 11:04 pm Updated on July 10, 2017

How To Install Apache NiFi On Ubuntu 16.04 LTS

Advertisement

The original project behind Apache NiFi was created by NSA! Of course it will be efficient in tracking and can have vulnerabilities, at least older than 1.3 versions had. Version 1.3.0 is latest at the time of publication of this guide. At present NSA has nothing to do with Apache NiFi and it has been another Big Data tool in Apache Software Foundation’s collection. It can have vulnerabilities. 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.Official website is :

Vim
1
https://nifi.apache.org

How To Install Apache NiFi On Ubuntu 16.04 LTS

We have to increase the limits. What we will do, wiki is here :

Vim
1
https://wiki.archlinux.org/index.php/Limits.conf

Run :

Advertisement

---

Vim
1
2
apt update
apt upgrade

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

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

 

Apache NiFi can only made to run, can be fully installed, can be integrated with other Big Data analytics tools. 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
su nifi
cd ~
wget http://redrockdigimark.com/apachemirror/nifi/1.3.0/nifi-1.3.0-bin.tar.gz
tar xvzf nifi-1.3.0-bin.tar.gz
rm nifi-1.3.0-bin.tar.gz
ls -al
# for compatibility with other tutorials
ln -s  ~/nifi-1.3.0/ /opt/nifi-1.3.0/
ln -s  ~/nifi-1.3.0/ /opt/nifi-latest
# chown
chown -h nifi. /opt/nifi-latest
chown -R nifi. ~/nifi-1.3.0/

The main configuration is nifi.properties file :

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

The default 8080 is used by Tomcat and many others.

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
/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

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

Tagged With ubuntu 18 04 apache nifi as service , installing nifi , how to upgrade nifi on ubuntu , https://thecustomizewindows com/2017/07/how-to-install-apache-nifi-on-ubuntu-16-04-lts/ , install apache nifi , downloading apach nifi via terminal ubuntu , apache nifi ubuntu 16 04 service start , apache nifi ubuntu , windows 10 ubuntu install nifi , apache nifi install
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 16.04 LTS

  • 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.

  • Configure Apache With Fail2Ban on Ubuntu 18.04

    Here is How To Configure Apache With Fail2Ban on Ubuntu 18.04 to block more types of malicious attempts towards server to create a practical firewall.

  • 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