2 xieyy love xieyy_love 于 2016.09.13 11:36 提问

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
zqbnqsdsmd   2016.10.04 23:51
Csdn user default icon
上传中...
上传图片
插入图片