1

我正在使用kettle 3.2。我有一个要求,比如我需要CSV file根据来自another table. 为数也。rows increases_ 我的意思是,如果我有 2 行,那么该文件将像 one.csv 中的第一行数据和 two.csv 中的第二行数据一样创建CSV filesincreases

我所做的设计最多可以工作 650 行,但在 700 行之后它显示错误

 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) : Unexpected error :
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :
 org.pentaho.di.core.exception.KettleException:  2012/12/31 14:21:27 -
 CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA, build 10572 from
 2009-05-12 08.45.26 by buildguy) : Error opening new file :
 org.apache.commons.vfs.FileSystemException: Could not create file
 "file:///home/admin/Desktop/data-integration3.2/CT_1056800_20121231_142127.CSV".
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :  2012/12/31
 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA, build 10572
 from 2009-05-12 08.45.26 by buildguy) :    at
 org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.openNewFile(TextFileOutput.java:654)
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :    at
 org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.setDataWriterForFilename(TextFileOutput.java:187)
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :    at
 org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.processRow(TextFileOutput.java:163)
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :    at
 org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
 2012/12/31 14:21:27 - CSV FILE OUTPUT.0 - ERROR (version 3.2.0-GA,
 build 10572 from 2009-05-12 08.45.26 by buildguy) :    at
 org.pentaho.di.trans.steps.textfileoutput.TextFileOutput.run(TextFileOutput.java:849)
 2012/12/31 14:21:27 - EXTRACTION_FOR_CUSTOMER - ERROR (version
 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Errors detected!

请帮我解决这个问题。提前致谢

4

1 回答 1

0

最后我找到了解决方案。我使用修改 java 脚本对象来创建大量 CSV 文件 (>8000) 解决了这个问题。我使用了内置功能

appendToFile(文件路径,内容)

感谢你的支持

于 2013-01-07T09:14:21.803 回答