在pentaho水壶

时间:2016-07-27 07:10:55

标签: mapping pentaho etl data-integration pentaho-data-integration

我试图将多个数据库整合到一个数据库中。

面临的挑战是,并非所有数据库都具有相同的列结构。

在某些情况下,源表中的列数远远少于目标表。

我想要做的是,映射源表和目标表之间通用的列,并将目标表中的其他列设置为null。

e.g。让我们考虑我的源表由120列组成,其中目标表由180列组成。我想将源表中的所有120列映射到目标表中的相应列,而将剩余的60列作为空目标。

Pentaho Kettle有可能吗?

目前我收到以下错误:

2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleStepException: 
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 - Field [CustomerID] is required and couldn't be found!
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 - 
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 -    at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:98)
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 -    at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/07/27 12:16:29 - backoffice1213 ClientAddMaster.0 -    at java.lang.Thread.run(Thread.java:745)
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleStepException: 
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 - Field [CustomerID] is required and couldn't be found!
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 - 
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 -    at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:98)
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 -    at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/07/27 12:16:29 - backoffice1112 ClientAddMaster.0 -    at java.lang.Thread.run(Thread.java:745)
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error
2016/07/27 12:16:29 - sohamdata1112 clientaddmaster.0 - Finished reading query, closing connection.
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleStepException: 
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 - Field [CustomerID] is required and couldn't be found!
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 - 
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 -    at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:98)
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 -    at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/07/27 12:16:29 - backoffice1011 ClientAddMaster.0 -    at java.lang.Thread.run(Thread.java:745)

我已经定义了表之间常见列的映射。 如果需要更多信息,请告诉我。

0 个答案:

没有答案