Talend将具有相同模式的两个不同数据流合并为一个

Talend将具有相同模式的两个不同数据流合并为一个,talend,Talend,我使用的是talend 6.1.1,我有两个组件tmysqlinput和tfixedflowinput 模式对于这两个组件都是相同的,我正在尝试组合由这些组件生成的数据 for example: schema is like col1 and col2 output of tmysqlinput component is: 1,2 2,3 output of tixeflowinput component is: 3,4 4,5 现在,我正在输出的输出类似于两个输出的组合。 应该是这样的:

我使用的是talend 6.1.1,我有两个组件tmysqlinput和tfixedflowinput

模式对于这两个组件都是相同的,我正在尝试组合由这些组件生成的数据

for example: schema is like col1 and col2
output of tmysqlinput component is: 
1,2
2,3
output of tixeflowinput component is: 
3,4
4,5
现在,我正在输出的输出类似于两个输出的组合。 应该是这样的:

1,2
2,3
3,4
4,5

请帮助我组合这两个组件的输出。

如果架构完全相同,您可以将这两个组件的行输出发送到tUnite组件中

for example: schema is like col1 and col2
output of tmysqlinput component is: 
1,2
2,3
output of tixeflowinput component is: 
3,4
4,5

使用tUnite的替代方法是tHashOutput

例如:

tMySqlInput--main-->tHashOutput
    |
 onSubjobOK
    |
tFixedFlowInput--main-->tHashOutput
    |
 onSubjobOK
    |
tHashInput--main-->tFileOuputDelimtited
在第二个tHashOutput中,确保将其与第一个tHashOutput关联

在tHashInput中,确保将其与第一个tHashOutput关联


tUnite通常是首选,但根据具体情况,tHashOutput可能是合适的。

我发现,如果两个流很难识别,则模式a中有时会存在差异。要使其更容易工作,请在元数据存储库中定义一个架构。然后在组件的输出中使用元数据模式,这些组件将馈送到tUnite和tUnite本身。