如何在水壶中解决此错误“org.apache.commons.vfs.FileSystemException:无法创建文件”

时间:2012-12-31 09:17:21

标签: etl pentaho kettle

我正在使用kettle 3.2。我有一个要求,比如我需要根据CSV file的数据写another tablerows increases CSV files increases的数量也是 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! 。我的意思是如果我有2行,那么文件将创建为one.csv中的第一行数据和two.csv中的第二行数据

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

{{1}}

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

1 个答案:

答案 0 :(得分:0)

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

<强> appendToFile(文件路径,内容)

感谢您的支持