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

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
    关注
    评论

报告相同问题?

悬赏问题

  • ¥20 fluent无法启动
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。