在使用KETTLE开发transform的时候,遇到了这个问题。transform的逻辑是使用一个“文本文件输入”读取了一个文件。在预览记录的时候出现了一个错误
2009/12/16 17:34:34 - Trans - 这项转换可以被回放 回放日期是: 2009/12/16 17:34:33
2009/12/16 17:36:49 - 文本文件输入.0 - Opening file: D:\kettle\decode_210_10209_td2_alcatel_20091209.stat
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Couldn't open file #1 : D:\kettle\decode_210_10209_td2_alcatel_20091209.stat --> org.pentaho.di.core.exception.KettleFileException:
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) :
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : DOS format was specified but only a single line feed character was found, not 2
2009/12/16 17:36:56 - 文本文件输入.0 - 完成处理 (I=0, O=0, R=0, W=0, U=0, E=1
2009/12/16 17:36:56 - Kettle - 转换被检测
2009/12/16 17:36:56 - Kettle - 转换正在杀死其他步骤!
2009/12/16 17:36:49 - 文本文件输入.0 - Opening file: D:\kettle\decode_210_10209_td2_alcatel_20091209.stat
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : Couldn't open file #1 : D:\kettle\decode_210_10209_td2_alcatel_20091209.stat --> org.pentaho.di.core.exception.KettleFileException:
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) :
2009/12/16 17:36:50 - 文本文件输入.0 - ERROR (version 3.2.0-GA, build 10572 from 2009-05-12 08.45.26 by buildguy) : DOS format was specified but only a single line feed character was found, not 2
2009/12/16 17:36:56 - 文本文件输入.0 - 完成处理 (I=0, O=0, R=0, W=0, U=0, E=1
2009/12/16 17:36:56 - Kettle - 转换被检测
2009/12/16 17:36:56 - Kettle - 转换正在杀死其他步骤!
解决办法: in the text input step under the content tab there's an option "Format". In your case it's set to DOS, try setting it to Unix or Mixed and run it again.
--在内容栏,把格式由DOS,改成UNIX 或者 MIXED 再试1次
--在内容栏,把格式由DOS,改成UNIX 或者 MIXED 再试1次