java 停止kettle转换_通过java运行Kettle转换
我創(chuàng)建了一個(gè)Java應(yīng)用程序(試點(diǎn))來(lái)運(yùn)行水壺轉(zhuǎn)換。這很簡(jiǎn)單,我只有主要的方法,得到一個(gè).ktr文件并執(zhí)行它。
public static void main( String[] args )
{
try {
KettleEnvironment.init();
TransMeta transMeta = new TransMeta("C:\\user\\car.ktr");
Trans trans = new Trans(transMeta); //create new transformation object
trans.execute(null);
trans.waitUntilFinished();
} catch (KettleException e) {
e.printStackTrace();
}
}問(wèn)題是,當(dāng)我運(yùn)行這個(gè)時(shí),我得到一個(gè)異常。
2014/12/23 08:24:54 - Table output.0 - ERROR (version 5.0.5, build 1 from 2014-03-21_17-56-23 by buildguy) : Error initializing step [Table output]
2014/12/23 08:24:54 - Table output.0 - ERROR (version 5.0.5, build 1 from 2014-03-21_17-56-23 by buildguy) : java.lang.AbstractMethodError
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.core.logging.LoggingObject.grabLoggingObjectInformation(LoggingObject.java:136)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.core.logging.LoggingObject.(LoggingObject.java:56)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.core.logging.LoggingRegistry.registerLoggingSource(LoggingRegistry.java:70)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.core.logging.LogChannel.(LogChannel.java:74)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.core.database.Database.(Database.java:191)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.init(TableOutput.java:598)
2014/12/23 08:24:54 - Table output.0 - at org.pentaho.di.trans.step.StepInitThread.run(StepInitThread.java:65)
2014/12/23 08:24:54 - Table output.0 - at java.lang.Thread.run(Unknown Source)
2014/12/23 08:24:54 - car - ERROR (version 5.0.5, build 1 from 2014-03-21_17-56-23 by buildguy) : Step [Table output.0] failed to initialize!
org.pentaho.di.core.exception.KettleException:
We failed to initialize at least one step. Execution can not begin!
at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1068)
at org.pentaho.di.trans.Trans.execute(Trans.java:578)
at neoway.com.App.main(App.java:16)它使用maven創(chuàng)建了這個(gè)應(yīng)用程序,并且我擁有這些依賴(lài)關(guān)系。
pentaho-kettle
kettle-engine
5.0.5
pentaho-kettle
kettle-db
4.4.3.3
pentaho-kettle
kettle-core
5.0.5
pentaho-kettle
kettle-ui-swt
5.0.5
pentaho-library
libformula
5.0.5
任何人對(duì)這個(gè)問(wèn)題有什么想法?
謝謝。
總結(jié)
以上是生活随笔為你收集整理的java 停止kettle转换_通过java运行Kettle转换的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python注册系统_Python制作简
- 下一篇: mysql中怎么在列中使用时间函数_my