NiFi the Processor Configuration

Processor (processor) of the configuration

Selecting a Processor, such ExecuteSQL, its name can be seen from the function of the processor is to perform a sql (sql course of the execution must have a return value), the following exemplary description to make ExecuteSQL, canvas Add ExecuteSQL processor, check the settings shown in the right view

1. configure configuration (mainly talk configure, another little bit of all of you to try)

Select the right selection processor configure the processor to enter or double-click configuration, as shown in a total of 4 column shown CI

1.1 Settings

  • Automatically Terminate Relationships

  When do I need to terminate the relationship check it? The relationship between the processor, such as success or failure, and so when any one or more relationships without further treatment would need to check out.

1.2 Scheduling

  • Scheduling Strategy

There are three scheduling policies, select

  1. Timer driven: drive time (how much time intervals)
  2. Event driven: Event-driven
  3. CRON driven: cron drive

Note: in the head processor scheduling time (Run Schedule) must be set up, do not use the default 0 sec; otherwise it is infinite loop has been executed, for example ExecuteSQL processor time schedule is not set, then it will cause frequent access to the database, resulting in database hang up.

  • Execution:

There are two options node execution

  1. All nodes: all nodes
  2. Primary node: The master node

Note: corresponding to a single node NiFi for the above two options are no different, for the cluster is the case, the first processor are generally selected Primary node, processor selection All nodes, because the processor is the starting point of the entire mission select all the nodes, then each node to perform the same task, it is certainly not what we want, we need only one node to perform on it.

1.3 Properties

 Configuration attributes for different processors are different, the back of the mouse pointing attribute name corresponding to the question mark will be described

搞清楚每个属性的作用,然后进行相应的配置。

提示:要更好的查看属性的说明,请选中ExecuteSQL右键选择View usage,然后就会有ExecuteSQL详细的说明了.

1.4 Comments

这个注释说明没什么好说的

 

Guess you like

Origin www.cnblogs.com/zxbdboke/p/11299506.html