Wednesday, 9 January 2019

NiFi 1.3.0 Installation & Configuration

Apache NiFi is an open source project which enables the enterprise integration and dataflow automation tool that allows a user to send, receive, route, transform, and sort data, as needed, in an automated and configurable way.




Prerequisites

Java 8
Linux Operating Systems
Supported Web Browsers

Downlod and Installing NiFi

Download NiFi 1.3.0 using below command on /usr/local directory.

$cd /usr/local
$sudo wget http://www-us.apache.org/dist/nifi/1.3.0/nifi-1.3.0-bin.tar.gz
Unpack the compressed tar file by using this command
$ sudo tar -xvf nifi-1.3.0-bin.tar.gz
Rename nifi-1.3.0 directory to nifi in /usr/local directory by using give command.
$ sudo mv nifi-1.3.0 nifi

Setting up NiFi Environment Variables

First we need to set environment variable for NiFi. Edit ~/.bashrc file.
# sudo nano ~/.bashrc
Append following values at end of file and save the file.
export NIFI_HOME=/usr/local/nifi
export PATH=$NIFI_HOME/bin:$PATH
Change the ownership and permissions of the directory /usr/local/nifi
$ sudo chown -R hdfs:hdfs /usr/local/nifi
$ sudo chmod -R 755 /usr/local/nifi
Reload the configuration file ~/.bashrc with the following command.
$ source ~/.bashrc

Edit Configuration Files

Edit nifi.properties file.
$ cd /usr/local/nifi/conf
$ sudo nano nifi.properties
Change the value for below properties as hostname/server IP and save It.
nifi.web.http.host=localhost
nifi.web.http.port=8089

Start and verify NiFi Service

Start & Stop NiFi services
$ cd /usr/local/nifi
$ ./bin/nifi.sh start
$ ./bin/nifi.sh stop
OR
$ nifi.sh start
$ nifi.sh stop
Get status of NiFi services
$ ./bin/nifi.sh status
OR
$ nifi.sh status
Showing service is running
2018-01-11 19:53:02,974 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi is currently running, listening to Bootstrap on port 42449, PID=1295

NiFi Web Interfaces

Access your NiFi Web Interfaces on port 8089 in your favourite web browser.
Showing NiFi Web Interface.



Share:

0 comments:

Post a Comment

Total Pageviews

Lables

Powered by Blogger.

Followers