1

我目前在 Pentaho Spoon 5.4.0.1-130 上启动并运行了一项相当大的工作,但不幸的是,当我尝试在 Pentaho Kitchen 上执行相同的工作时,我不断收到错误消息:

2016/09/08 03:36:05 - Staging Titular.0 - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : Unexpected error rolling back the database connection.
2016/09/08 03:36:05 - Staging Titular.0 - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 
2016/09/08 03:36:05 - Staging Titular.0 - Unable to get database metadata from this database connection
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.run (Job.java:424)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:532)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.Job.execute (Job.java:716)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.job.entries.trans.JobEntryTrans.execute (JobEntryTrans.java:1065)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.trans.Trans.execute (Trans.java:607)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:610)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.core.database.Database.rollback (Database.java:845)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.core.database.Database.rollback (Database.java:853)
2016/09/08 03:36:05 - Staging Titular.0 -  at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2758)
2016/09/08 03:36:05 - Staging Titular.0 - 
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2760)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.core.database.Database.rollback(Database.java:853)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.core.database.Database.rollback(Database.java:845)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:610)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1120)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.trans.Trans.execute(Trans.java:607)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.entries.trans.JobEntryTrans.execute(JobEntryTrans.java:1065)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:716)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:859)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.execute(Job.java:532)
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.job.Job.run(Job.java:424)
2016/09/08 03:36:05 - Staging Titular.0 - Caused by: java.lang.NullPointerException
2016/09/08 03:36:05 - Staging Titular.0 -   at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2758)
2016/09/08 03:36:05 - Staging Titular.0 -   ... 13 more

我不知道会发生什么,所以任何帮助将不胜感激。

谢谢你的时间!

4

1 回答 1

0

值得庆幸的是,Dirk Trilsbeek 是对的!(参见问题的第一条评论)

问题出在共享数据库连接上。一旦我将schtasks(Windows 任务调度程序)配置为使用正确的用户,我就可以毫无问题地使用 Kitchen 来执行我的工作。

以下是我当前用于运行任务的配置:

REM call-pentaho-job.bat
c:
cd /d "C:\pentaho\data-integration"
call Kitchen.bat /file:"C:\app\my-job.kjb" /level:Detailed /logfile:"C:\app\logs\my-job.txt"
exit
REM
REM schtasks /create /tn "MY-PENTAHO-JOB" /tr "\"C:\app\call-pentaho-job.bat\"" /ru MYDOMAIN\myuser /sc daily /st 03:00
REM

谢谢你,德克!

于 2016-09-12T16:39:14.080 回答