Pentaho 文件存储库将作业和转换移至根目录
Pentaho File Repository Moves Jobs & Transformations to root
我创建了一个新的文件存储库,然后使用文件管理器将我的pentaho 项目文件 移动到根文件夹中。然后我连接到我的文件存储库并打开(Ctrl-O)我的工作和 t运行sformation 文件(在 folder/
中),然后尝试 运行 他们,抛出以下错误:
org.pentaho.di.core.exception.KettleXMLException:
Unable to load the job from XML file [F:/user/root/job.kjb]
Unable to read file [file:///F:/user/root/job.kjb]
Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:738)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:710)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:685)
at org.pentaho.di.repository.filerep.KettleFileRepository.loadJob(KettleFileRepository.java:949)
at org.pentaho.di.ui.spoon.job.JobGraph.startJob(JobGraph.java:3466)
at org.pentaho.di.ui.spoon.delegates.SpoonJobDelegate.executeJob(SpoonJobDelegate.java:1403)
at org.pentaho.di.ui.spoon.Spoon.executeJob(Spoon.java:8486)
at org.pentaho.di.ui.spoon.Spoon.executeFile(Spoon.java:8445)
at org.pentaho.di.ui.spoon.Spoon.runFile(Spoon.java:8410)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)
at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access0(JfaceMenuitem.java:43)
at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.run(JfaceMenuitem.java:106)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1366)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7984)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9245)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: org.pentaho.di.core.exception.KettleXMLException:
Unable to read file [file:///F:/user/root/job.kjb]
Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:561)
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:540)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:726)
... 35 more
Caused by: org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1309)
at org.apache.commons.vfs2.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:411)
at org.pentaho.di.core.vfs.KettleVFS.getInputStream(KettleVFS.java:270)
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:559)
... 37 more
Caused by: java.io.FileNotFoundException: F:\user\root\job.kjb (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.apache.commons.vfs2.provider.local.LocalFile.doGetInputStream(LocalFile.java:241)
at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1301)
... 40 more
然后我保存了(Ctrl-S)文件,然后它们运行,然而,它们也被移动 从 root/folder
到 root/
。为什么以及如何解决?
我能够通过使用 另存为... 选项解决问题并将文件保存到位而不是 保存因为出于某种原因将它们保存(实际上什至将它们移动)到root
,即使我可以选择select 它们在存储库本身提供的打开菜单中,在 folder
我首先将它们放入的位置。
我创建了一个新的文件存储库,然后使用文件管理器将我的pentaho 项目文件 移动到根文件夹中。然后我连接到我的文件存储库并打开(Ctrl-O)我的工作和 t运行sformation 文件(在 folder/
中),然后尝试 运行 他们,抛出以下错误:
org.pentaho.di.core.exception.KettleXMLException:
Unable to load the job from XML file [F:/user/root/job.kjb]
Unable to read file [file:///F:/user/root/job.kjb]
Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:738)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:710)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:685)
at org.pentaho.di.repository.filerep.KettleFileRepository.loadJob(KettleFileRepository.java:949)
at org.pentaho.di.ui.spoon.job.JobGraph.startJob(JobGraph.java:3466)
at org.pentaho.di.ui.spoon.delegates.SpoonJobDelegate.executeJob(SpoonJobDelegate.java:1403)
at org.pentaho.di.ui.spoon.Spoon.executeJob(Spoon.java:8486)
at org.pentaho.di.ui.spoon.Spoon.executeFile(Spoon.java:8445)
at org.pentaho.di.ui.spoon.Spoon.runFile(Spoon.java:8410)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)
at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access0(JfaceMenuitem.java:43)
at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.run(JfaceMenuitem.java:106)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1366)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7984)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9245)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: org.pentaho.di.core.exception.KettleXMLException:
Unable to read file [file:///F:/user/root/job.kjb]
Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:561)
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:540)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:726)
... 35 more
Caused by: org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///F:/user/root/job.kjb" because it is not a file.
at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1309)
at org.apache.commons.vfs2.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:411)
at org.pentaho.di.core.vfs.KettleVFS.getInputStream(KettleVFS.java:270)
at org.pentaho.di.core.xml.XMLHandler.loadXMLFile(XMLHandler.java:559)
... 37 more
Caused by: java.io.FileNotFoundException: F:\user\root\job.kjb (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.apache.commons.vfs2.provider.local.LocalFile.doGetInputStream(LocalFile.java:241)
at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1301)
... 40 more
然后我保存了(Ctrl-S)文件,然后它们运行,然而,它们也被移动 从 root/folder
到 root/
。为什么以及如何解决?
我能够通过使用 另存为... 选项解决问题并将文件保存到位而不是 保存因为出于某种原因将它们保存(实际上什至将它们移动)到root
,即使我可以选择select 它们在存储库本身提供的打开菜单中,在 folder
我首先将它们放入的位置。