我创建了各种数据转换(* .ktr文件),这些转换在从Spoon GUI(PDI-CE 5.4.0.1-130; Windows 7)启动时运行良好。
我尝试使用以下代码从Java运行它们(接近文档中的示例代码):
org.pentaho.di.core.exception.KettleMissingPluginsException:
Missing plugins found while loading a transformation
Step : CsvInput
Step : XMLOutput
at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2882)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2718)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2670)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2647)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2627)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2592)
at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2555)
at (caller method in my code)
执行时,我得到以下异常:
<dependency>
<groupId>pentaho-kettle</groupId>
<artifactId>kettle-core</artifactId>
<version>5.4.0.1-130</version>
</dependency>
<dependency>
<groupId>pentaho-kettle</groupId>
<artifactId>kettle-engine</artifactId>
<version>5.4.0.1-130</version>
</dependency>
<dependency>
<groupId>pentaho-kettle</groupId>
<artifactId>kettle-ui-swt</artifactId>
<version>5.4.0.1-130</version>
</dependency>
<dependency>
<groupId>pentaho-library</groupId>
<artifactId>libformula</artifactId>
<version>5.4.0.1-130</version>
</dependency>
由于我没有使用任何插件而只使用本机步骤(在此示例中为CsvInput,XMLOutput),因此我不理解抛出异常的原因。为什么抛出它,如何修复代码运行?
我可能错过了maven依赖吗?我使用以下存储库 http://repository.pentaho.org/content/groups/omni/ 和依赖项:
<img id="myImg" class="round" alt="This is the time" src="minute/default.jpg" />
<script type="text/javascript">
setInterval(function() {
var myImg = document.getElementById('myImg');
myImg.src = '/minute/' + new Date().toTimeString().substring(0, 5).replace(':', '') + '.jpg' ;
onerror = myImg.src = '/minute/default.jpg' ;
}, 30000);
</script>
提前感谢您的回答。