简体   繁体   English

尼菲|| 组合来自多个 Putsql 处理器的流文件并与其他进程组连接

[英]Nifi || Combining flowfiles coming from multiple Putsql processor and connect with other process group

Nifi ||尼菲|| Combining flowfiles coming from multiple Putsql processor and connect with other process group.组合来自多个 Putsql 处理器的流文件并与其他进程组连接。

We are doing calculation in two ways:我们通过两种方式进行计算:

  • First Process group - Inserting data into table.第一个进程组 - 将数据插入表中。
  • Second Process group - Doing calculation on inserted data.第二个进程组 - 对插入的数据进行计算。

I want to connect both the flows so in case of any issue no overall calculation should take place and they both run in one go.我想连接这两个流,以便在出现任何问题时不应该进行整体计算,并且它们都一次性运行。 Currently I am scheduling them separately.目前我正在分别安排它们。

I tried mergecontent but nothing works.我尝试了合并内容,但没有任何效果。

在此处输入图片说明

The 'Success' relationship from the PutSQL contains records that were successfully updated in the database. PutSQL 中的“成功”关系包含在数据库中成功更新的记录。

Add an 'Input Port' to your 'Overall Calculation' group, and drag the 'Success' relationship from each PutSQL on to the 'Overall Calculation' and connect to the same 'Input Port'.将“输入端口”添加到“整体计算”组,并将“成功”关系从每个 PutSQL 拖到“整体计算”并连接到相同的“输入端口”。

流动

I have used Mergecontent with replacetext processor and it worked.我已经将 Mergecontent 与 replacetext 处理器一起使用并且它有效。 Thanks everyone谢谢大家

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM