加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

kettle数据导出为excel2007以上格式报错处理

(2019-10-31 11:23:15)
标签:

kettle导出excel报错

kettle导出表格报错

kettle导出excel2007

分类: KETTLE学习
      在使用kettle5.4版本中,使用输出控件 “Microsoft Excel输出” 将表数据导出为excel2007及以上版本文件时报错,不能成功生成结果xlsx文件,下面我们来看下具体的处理过程。

一、错误描述
ERROR (version 5.3.0.0-213, build 1 from 2019-05-29_12-17-08 by buildguy) : Unexpected error
ERROR (version 5.3.0.0-213, build 1 from 2019-05-29_12-17-08 by buildguy) : org.pentaho.di.core.exception.KettleException:
org.apache.commons.vfs.FileSystemException: File closed.
File closed.
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.processRow(ExcelWriterStep.
at org.pentaho.di.trans.step.RunThread.run(RunThread.
at
Caused by: org.apache.commons.vfs.FileSystemException: File closed.
at org.apache.commons.vfs.util.MonitorOutputStream.assertOpen(Unknown Source)
at org.apache.commons.vfs.util.MonitorOutputStream.flush(Unknown Source)
at
at
at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.
...



二、处理方法
首先查看你安装KETTLE的计算机上,CMD命令窗口中执行java -version 命令查看已安装的jdk的版本号,如果是1.8及以上的版本,就会导致上面的错误,只需要卸载已安装的JDK,在官网地址:https://www.oracle.com/technetwork/java/javase/archive-139210.html 下载JDK1.7,重新安装JDK为1.7及更早的版本,问题即可解决。

三、输出控件配置注意事项
文件&工作表选项卡配置:
1.扩展名 选择:xlsx[Excel 2007 and above]
2.Stream XSLX data  打钩




0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有