您的位置:首页 > Web前端

DOS format was specified but only a single line feed character was found, not 2

2015-08-21 18:38 796 查看
在使用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 - 转换正在杀死其他步骤!

 

解决办法: 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次
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: