Apache Nifi 简明教程
Apache NiFi - Environment Setup
在本节中,我们将了解 Apache NiFi 的环境设置。Apache NiFi 的安装步骤如下 −
In this chapter, we will learn about the environment setup ofApache NiFi. The steps for installation of Apache NiFi are as follows −
Step 1 − 在您的计算机中安装当前版本的 Java。请在您的机器中设置 JAVA_HOME。您可以按照如下所示检查版本:
Step 1 − Install the current version of Java in your computer. Please set theJAVA_HOME in your machine. You can check the version as shown below:
在 Windows 操作系统 (OS)(使用命令提示符)中 −
In Windows Operating System (OS) (using command prompt) −
> java -version
在 UNIX OS (使用终端):
In UNIX OS (Using Terminal):
$ echo $JAVA_HOME
Step 2 − 从 https://nifi.apache.org/download.html 下载 Apache NiFi
Step 2 − DownloadApache NiFi from https://nifi.apache.org/download.html
-
For windows OSdownload ZIP file.
-
For UNIX OSdownload TAR file.
-
For docker images,go to the following link https://hub.docker.com/r/apache/nifi/.
Step 3 ——Apache NiFi 的安装过程非常简单。该过程因操作系统不同而异——
Step 3 − The installation process for Apache NiFi is very easy. The process differs with the OS −
-
Windows OS − Unzip the zip package and the Apache NiFi is installed.
-
UNIX OS − Extract tar file in any location and the Logstash is installed.
$tar -xvf nifi-1.6.0-bin.tar.gz
Step 4 ——打开命令提示符,转到 NiFi 的 bin 目录。例如,C:\nifi-1.7.1\bin,然后执行 run-nifi.bat 文件。
Step 4 − Open command prompt, go to the bin directory of NiFi. For example, C:\nifi-1.7.1\bin, and execute run-nifi.bat file.
C:\nifi-1.7.1\bin>run-nifi.bat
Step 5 ——NiFi UI 需要几分钟启动。用户可以在 NiFi UI 启动后检查 nifi-app.log,然后用户可以输入 http://localhost:8080/nifi/ 来访问 UI。
Step 5 − It will take a few minutes to get the NiFi UI up. A user cancheck nifi-app.log, once NiFi UI is up then, a user can enter http://localhost:8080/nifi/ to access UI.