Nifi installation instructions, nifi Installation

Source: Internet
Author: User

Nifi installation instructions, nifi Installation
System Environment:

  Centos6.7 virtual machine installed by vmware

  Jdk1.8

Version 3.3.9 of the maven Library (you need to modify the configuration file to match the current maven version when compiling and starting with the source code. The lowest version seems to be 3.1.5, but you cannot remember it)

Other ssh tools are random.

1. Binary Engineering

① NIFI: http://nifi.apache.org/download.html

Download the nifi binary project of the current version. I used version 1.1.0 and the latest version is 1.1.1.

  

Decompress the downloaded package. (Decompress the package in linux and upload it to the linux system. Some files may have read and write permissions)

② Modify the port number and Path:

File: conf/nifi. properties

Location: nifi. web. http. host = 192.168.23.small (the address accessed after startup)

Nifi. web. http. port = 8080 (access port)

Nifi. web. https. host =

Nifi. web. https. port =

③ Start

Start command: bin/nifi. sh start

Close command: bin/nifi. sh stop

View running status: bin/nifi. sh status

④ Disable the firewall (root): If the firewall is not disabled, the external browser cannot access the firewall after nifi is started.

Effective after restart

Enable: chkconfig iptables on

Close: chkconfig iptables off

Takes effect immediately and becomes invalid after restart

Enable: service iptables start

Disable: service iptables stop

⑤ Access:

Http: // 192.168.23.20.: 8080/nifi/

 

2, Source File Project

Download NIFI: http://nifi.apache.org/download.html

Download the source package:

  

② Install maven:

Enter maven to Virtual Machine

Edit the/etc/profile file and add Environment Variables

Export JAVA_HOME =/opt/apps/jdk

Export CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/tools. jar

Export MAVEN_HOME =/opt/apps/maven

Export PATH =.: $ JAVA_HOME/bin: $ PATH: $ HOME/bin: $ MAVEN_HOME/bin

Command: Make source profile effective (add in user mode. In root mode, the owner and owner of all maven operations will become root, as a result, you do not have the permission to use the dependency in maven and override the files generated by the mvn operation in the project during the re-packaging)

③ Change the maven version in the pom file under the root directory of the project to the current version (3.3.9)

④ Compile NIFI source code

Run mvn clean install in the project directory

When a test package fails to pass the test, the verification attempt is skipped.

Run mvn clean install-Dmaven. test. skip = true in the project directory.

Run mvn clean package-Dmaven. test. skip = true in the project directory.

⑤ Install the source code and include the compiled startup package in source-nifi/nifi-assembly/target,

Extract and decompress the package.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.