• 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

This Article Has Been Shared 975 Times!

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

  • Installing Local Data Lake on Ubuntu Server : Part 1

    Here is Part 1 of Installing Local Data Lake on Ubuntu Server With Hadoop, Spark, Thriftserver, Jupyter etc To Build a Prediction System.

  • Integration of Apache Hadoop With OpenStack Swift

    The Topic Integration of Apache Hadoop With OpenStack Swift Is Not Exactly New. You Can Follow Our Guide Specially For Handling OpenStack.

  • How To Install Apache Ambari on Ubuntu 16.04 to Manage Hadoop Cluster

    Apache Ambari Helps Management, Monitoring of Hadoop Cluster. Here is How To Install Apache Ambari on Ubuntu 16.04 to Manage Hadoop Cluster.

  • Install Apache Drill on Ubuntu 16.04 LTS Single Cloud Server

    Drill is SQL Query Engine for Hadoop, NoSQL, Cloud Storage. Here is How to Install Apache Drill on Ubuntu 16.04 LTS Single Cloud Server.

  • How To Install Hue on Ubuntu 16.04

    Hue is Query Tool With GUI For Browsing, Querying, Visualizing Data & Developing Apps for Hadoop. Here is How To Install Hue on Ubuntu 16.04.

Additionally, 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

  • What is an Automatic Ethanol Fireplace February 8, 2023
  • Disadvantages of Cloud-Native Computing February 7, 2023
  • Projector Screen Basics February 6, 2023
  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Apache NiFi On Ubuntu 16.04 LTS," in The Customize Windows, July 10, 2017, February 8, 2023, https://thecustomizewindows.com/2017/07/how-to-install-apache-nifi-on-ubuntu-16-04-lts/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT