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
|
$ 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
|
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.
Change the value for below properties as hostname/server IP and save It.
$ cd /usr/local/nifi/conf
$ sudo nano nifi.properties
|
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
|
$ ./bin/nifi.sh status
OR
$ nifi.sh status
|
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
|
0 comments:
Post a Comment