Apache Nifi 简明教程

Apache NiFi - User Interface

Apache 是用户可以通过 Web UI 访问的基于 Web 的平台。NiFi UI 非常具有交互性,并提供有关 NiFi 的广泛信息。如下面的图像所示,用户可以访问以下属性的信息——

Apache is a web-based platform that can be accessed by a user using web UI. The NiFi UI is very interactive and provides a wide variety of information about NiFi. As shown in the image below, a user can access information about the following attributes −

  1. Active Threads

  2. Total queued data

  3. Transmitting Remote Process Groups

  4. Not Transmitting Remote Process Groups

  5. Running Components

  6. Stopped Components

  7. Invalid Components

  8. Disabled Components

  9. Up to date Versioned Process Groups

  10. Locally modified Versioned Process Groups

  11. Stale Versioned Process Groups

  12. Locally modified and Stale Versioned Process Groups

  13. Sync failure Versioned Process Groups

user interface

Components of Apache NiFi

Apache NiFi UI 包含以下组件——

Apache NiFi UI has the following components −

Processors

用户可以在画布上拖动进程图标,然后为 NiFi 中的数据流选择所需的处理器。

User can drag the process icon on the canvas and select the desired processor for the data flow in NiFi.

processor icon
add processor

Input port

以下图标被拖到了画布上以将输入端口添加到任意数据流中。

Below icon is dragged to canvas to add the input port into any data flow.

输入端口用于获取不在该进程组中的处理器的数据。

Input port is used to get data from the processor, which is not present in that process group.

input port

在拖动该图标后,NiFi 会要求输入输入端口的名称,然后将该名称添加到 NiFi 画布中。

After dragging this icon, NiFi asks to enter the name of the Input port and then it is added to the NiFi canvas.

add port

Output port

以下图标被拖到了画布上以将输出端口添加到任意数据流中。

The below icon is dragged to canvas to add the output port into any data flow.

输出端口用于将数据传输到不在该进程组中的处理器。

The output port is used to transfer data to the processor, which is not present in that process group.

output port

在拖动该图标后,NiFi 会要求输入输出端口的名称,然后将该名称添加到 NiFi 画布中。

After dragging this icon, NiFi asks to enter the name of the Output port and then it is added to the NiFi canvas.

output add port

Process Group

用户使用下面的图标在 NiFi 画布中添加进程组。

A user uses below icon to add process group in the NiFi canvas.

gruop icon

在拖动此图标后,NiFi 会要求输入进程组的名称,然后将其添加到 NiFi 画布中。

After dragging this icon, NiFi asks to enter the name of the Process Group and then it is added to the NiFi canvas.

add process group

Remote Process Group

这用于在 NiFi 画布中添加远程进程组。

This is used to add Remote process group in NiFi canvas.

remote process group

Funnel

漏斗用于将某个处理程序的输出发送到多个处理程序。用户可以使用以下图标在 NiFi 数据流中添加漏斗。

Funnel is used to transfer the output of a processor to multiple processors. User can use the below icon to add the funnel in a NiFi data flow.

funnel icon

Template

此图标用于将数据流模板添加到 NiFi 画布。这有助于在同一或不同的 NiFi 实例中重复使用数据流。

This icon is used to add a data flow template to NiFi canvas. This helps to reuse the data flow in the same or different NiFi instances.

template icon

拖放之后,用户可以选择已添加到 NiFi 中的模板。

After dragging, a user can select the templates already added in the NiFi.

Label

它们用于向 NiFi 画布添加有关 NiFi 中的任何组件的文本。它提供一系列颜色,供用户为增加美学感而使用。

These are used to add text on NiFi canvas about any component present in NiFi. It offers a range of colors used by a user to add aesthetic sense.

label icon