最近在研究pentaho carte DI工具远程执行作业功能。发现以下问题:
感觉是pentaho carte DI的wrapper.conf 配置文件某个地方配置错了?求大神指教问题所在。
1.当用命令提示符启动carte服务,然后运行kettle作业时,作业可以正常执行。
2.当启动 pentaho carte DI服务后,执行远程作业时却出现失败现象。
错误日志为:
2017/08/31 16:40:11 - Student - 开始执行任务
2017/08/31 16:40:11 - Student - Student
2017/08/31 16:40:31 - Student - 开始项[Student]
2017/08/31 16:40:31 - Student - Loading transformation from repository [Student] in directory [/]
2017/08/31 16:40:31 - Student - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : org.pentaho.di.core.exception.KettleException:
2017/08/31 16:40:31 - Student - Unexpected error during transformation metadata load
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - No repository defined!
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - 发生了一个错误,当打开/验证 XML 文件 '//Student.ktr'!
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - Unable to get VFS File object for filename '//Student.ktr' : Could not find file with URI "\\Student.ktr" because it is a relative path, and no base URI was provided.
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryTrans.java:1303)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.entries.trans.JobEntryTrans.execute(JobEntryTrans.java:677)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.Job.execute(Job.java:724)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.Job.execute(Job.java:865)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.Job.execute(Job.java:546)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.Job.run(Job.java:436)
2017/08/31 16:40:31 - Student - Caused by: org.pentaho.di.core.exception.KettleException:
2017/08/31 16:40:31 - Student - No repository defined!
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - 发生了一个错误,当打开/验证 XML 文件 '//Student.ktr'!
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - Unable to get VFS File object for filename '//Student.ktr' : Could not find file with URI "\\Student.ktr" because it is a relative path, and no base URI was provided.
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryTrans.java:1268)
2017/08/31 16:40:31 - Student - ... 5 more
2017/08/31 16:40:31 - Student - Caused by: org.pentaho.di.core.exception.KettleXMLException:
2017/08/31 16:40:31 - Student - 发生了一个错误,当打开/验证 XML 文件 '//Student.ktr'!
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - Unable to get VFS File object for filename '//Student.ktr' : Could not find file with URI "\\Student.ktr" because it is a relative path, and no base URI was provided.
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2726)
2017/08/31 16:40:31 - Student - at org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryTrans.java:1265)
2017/08/31 16:40:31 - Student - ... 5 more
2017/08/31 16:40:31 - Student - Caused by: org.pentaho.di.core.exception.KettleFileException:
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - Unable to get VFS File object for filename '//Student.ktr' : Could not find file with URI "\\Student.ktr" because it is a relative path, and no base URI was provided.
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student -
2017/08/31 16:40:31 - Student - at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:159)
2017/08/31 16:40:31 - Student - at org.pentaho.di.core.vfs.KettleVFS.getFileObject(KettleVFS.java:106)
2017/08/31 16:40:31 - Student - at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2724)
2017/08/31 16:40:31 - Student - ... 6 more
2017/08/31 16:40:31 - Student - 完成作业项[Student] (结果=[false])
2017/08/31 16:40:31 - Student - Student
。奇了怪了,问题一直解决不了。感觉是pentaho carte DI的wrapper.conf 配置文件某个地方配置错了?求大神指教问题所在。
问题解决了吗?
改成绝对路径就好了。反正相对路径不行,具体配置文件哪里需要修改一下还是没找到。最近忙别的了,所以没时间研究这个工具。
@桃李满园: 谢谢,我研究研究
@笑匠1: 嗯,好的。找出来后,麻烦也告知我一下。我也学习学习
@桃李满哈哈,我加油,对自己没有信息/捂脸!