czzxsd 2016-09-13 03:36 采纳率: 0%
浏览 2725

kettle如何用命令行导出zip文件

导出时提示不能将XML文件导出成ZIP文件,我操作的时候是将资源库(根目录下/HOME/TEST)中的文件文件在图形界面下通过另存为(VFS)保存在本地,提示报下面的错,但是如果我直接在资源库中保存的时候,在操作kitchen /file:/home/test/test.kjb /export:d:/test.zip 又提示Unable to read file [file:///D:/home/test/test.kjb]
Could not read from "file:///D:/home/test/test.kjb" because it is a not a file.
ERROR: Kitchen can't continue because the job couldn't be loaded.

然后将资源库的导出XML时又报下面这个错,请问如何导出呢?这个资源库目录下的文件时存在什么地方呢?
D:\software\pdi-ee-client-4.4.2-GA\data-integration>kitchen /file:/kettle_tmp/
test.kjb /export:d:/test.zip
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Oracle\Middleware\jdk160_14_R27.6.5-32
DEBUG: _PENTAHO_JAVA=C:\Oracle\Middleware\jdk160_14_R27.6.5-32\bin\java.exe
DEBUG: PENTAHO_INSTALLED_LICENSE_PATH=
WARN 13-09 10:43:02,390 - Unable to load Hadoop Configuration from "file:///D:/
software/pdi-ee-client-4.4.2-GA/data-integration/plugins/pentaho-big-data-plugin
/hadoop-configurations/mapr21". For more information enable debug logging.
INFO 13-09 10:43:02,413 - Kitchen - Start of run.
INFO 13-09 10:43:02,703 - - Loading transformation from repository [test] in d
irectory [/home/test]
org.pentaho.di.core.exception.KettleException:
Error serializing export interface [D:/kettle_tmp/test.kjb : test]

Unexpected error during transformation metadata load

No repository defined!

    at org.pentaho.di.resource.ResourceUtil.serializeResourceExportInterface

(ResourceUtil.java:118)
at org.pentaho.di.resource.ResourceUtil.serializeResourceExportInterface
(ResourceUtil.java:56)
at org.pentaho.di.kitchen.Kitchen.main(Kitchen.java:313)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
Caused by: org.pentaho.di.core.exception.KettleException:
Unexpected error during transformation metadata load

No repository defined!

    at org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryT

rans.java:1208)
at org.pentaho.di.job.entries.trans.JobEntryTrans.exportResources(JobEnt
ryTrans.java:1311)
at org.pentaho.di.job.JobMeta.exportResources(JobMeta.java:3104)
at org.pentaho.di.resource.ResourceUtil.serializeResourceExportInterface
(ResourceUtil.java:87)
... 7 more
Caused by: org.pentaho.di.core.exception.KettleException:
No repository defined!

    at org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryT

rans.java:1181)
... 10 more

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2016-10-04 15:51
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下stata17中这段代码哪里有问题呀
  • ¥15 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决