Hi community,
I created a job that executes multiple jobs, each of which runs multiple transformations. When I run the job in PDI (i. e. the GUI), all works fine and it finishes within a couple of minutes successfully.
However, I need to run this job as a script (for automation purposes). I'm fairly new to this, but I'm able to run a simple test job (which just sends an email) via command line, so I believe I understood the basics.
I'm running PDI 8.2 (Community Edition), and I use a file repository. The jobs and transformations all sit in the same folder, and I try to execute this command:
But then, I'm getting errors like "Unexpected error during job metadata load" (I'll paste the full output at the end). It tries to execute the various jobs, but the execution of the transformations within the jobs fails. Between every job I included a "send email" job, and those are executed properly.Code:kitchen.bat /file:C:\Users\RFS\PentahoRepository\BI\00_00_00_Update_BI.kjb /level:Basic
What would I need to do so the transformations within the jobs run properly?
Thanks a lot for any help!
Here's some of the output (and no further text at the end)
C:\Program Files\Pentaho\data-integration\8.2>kitchen.bat /file:C:\Users\RFS\PentahoRepository\BI\00_00_00_Update_BI.kjb /level:Basic
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.8.0_211\
DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.8.0_211\\bin\java.exe
C:\Program Files\Pentaho\data-integration\8.2>"C:\Program Files\Java\jre1.8.0_211\\bin\java.exe" "-Xms4g" "-Xmx28g" "-XX:MaxPermSize=512m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\launcher.jar -lib ..\libswt\win64 -main org.pentaho.di.kitchen.Kitchen -initialDir "C:\Program Files\Pentaho\data-integration\8.2"\ /file:C:\Users\RFS\PentahoRepository\BI\00_00_00_Update_BI.kjb /level:Basic
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
14:06:50,030 INFO [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
14:06:54,269 INFO [KarafInstance]
*******************************************************************************
*** Karaf Instance Number: 2 at C:\Program Files\Pentaho\data-integration\8 ***
*** .2\.\system\karaf\caches\kitchen\data-1 ***
*** FastBin Provider Port:52902 ***
*** Karaf Port:8803 ***
*** OSGI Service Port:9052 ***
*******************************************************************************
Jul 13, 2019 2:06:55 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2019/07/13 14:06:55 - Kitchen - Logging is at level : Basic
2019/07/13 14:06:55 - Kitchen - Start of run.
2019-07-13 14:06:58.487:INFOejs.Server:jetty-8.1.15.v20140411
2019-07-13 14:06:58.519:INFOejs.AbstractConnector:Started NIOSocketConnectorWrapper@0.0.0.0:9052
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/core
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/configuration/beans
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/configuration/parameterized-types
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/configuration/security
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://www.w3.org/2005/08/addressing
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2004/08/addressing
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-management (195) [org.apache.cxf.management.InstrumentationManager]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-wsdl (198) [org.apache.cxf.wsdl.WSDLManager]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (200) [org.apache.cxf.binding.xml.XMLBindingFactory, org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (201) [org.apache.cxf.binding.soap.SoapBindingFactory, org.apache.cxf.binding.soap.SoapTransportFactory]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/bindings/soap
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (220) [org.apache.cxf.ws.policy.PolicyEngine, org.apache.cxf.policy.PolicyDataEngine, org.apache.cxf.ws.policy.AssertionBuilderRegistry, org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry, org.apache.cxf.ws.policy.PolicyBuilder, org.apache.cxf.ws.policy.PolicyAnnotationListener, org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider, org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry, org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.external.URIDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider, org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder, org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (202) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/transports/http/configuration
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/simple
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (204) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxws
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxrs
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/jaxrs-client
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/binding/coloc
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-local (216) [org.apache.cxf.transport.local.LocalTransportFactory]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-object (217) [org.apache.cxf.binding.object.ObjectBindingFactory]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/blueprint/binding/object
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/policy
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://www.w3.org/ns/ws-policy
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://www.w3.org/2006/07/ws-policy
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2004/09/policy
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://docs.oasis-open.org/wss/2004/...secext-1.0.xsd
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://docs.oasis-open.org/wss/2004/...tility-1.0.xsd
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://www.w3.org/2000/09/xmldsig#
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://docs.oasis-open.org/ws-sx/ws-...ypolicy/200702
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (237) [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider, org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader, org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier, org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/ws/addressing
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-security (239) [org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader, org.apache.cxf.ws.security.cache.CacheCleanupListener]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-rm (241) [org.apache.cxf.ws.rm.RMManager, org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider, org.apache.cxf.ws.rm.policy.RM10AssertionBuilder, org.apache.cxf.ws.rm.policy.RM12AssertionBuilder, org.apache.cxf.ws.rm.policy.WSRMP12PolicyLoader, org.apache.cxf.ws.rm.policy.MC11PolicyLoader, org.apache.cxf.ws.rm.policy.RSPPolicyLoader]
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://cxf.apache.org/ws/rm/manager
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
INFO: Registered blueprint namespace handler for http://schemas.xmlsoap.org/ws/2005/02/rm/policy
Jul 13, 2019 2:06:59 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-javascript (242) [org.apache.cxf.javascript.JavascriptServerListener]
Jul 13, 2019 2:06:59 PM org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$1 onSuccess
INFO: New Caching Service registered
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Program%20Files/Pentaho/data-integration/8.2/launcher/../lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Program Files/Pentaho/data-integration/8.2/plugins/pentaho-big-data-plugin/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2019/07/13 14:07:01 - 00_00_00_Update_BI - Start of job execution
2019/07/13 14:07:01 - 00_00_00_Update_BI - Starting entry [Mail: Update BI started]
Jul 13, 2019 2:07:02 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /lineage
2019/07/13 14:07:02 - 00_00_00_Update_BI - Starting entry [Deletions]
2019/07/13 14:07:02 - Deletions - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Error running job entry 'job' :
2019/07/13 14:07:02 - Deletions - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleException:
2019/07/13 14:07:02 - Deletions - Unexpected error during job metadata load
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.run (Job.java:384)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute (Job.java:497)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute (Job.java:680)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.execute (JobEntryJob.java:667)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta (JobEntryJob.java:1345)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta (JobEntryJob.java:1381)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMetaFromRepository (JobEntryJob.java:1353)
2019/07/13 14:07:02 - Deletions -
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1421)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1345)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.execute(JobEntryJob.java:667)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute(Job.java:680)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.execute(Job.java:497)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.Job.run(Job.java:384)
2019/07/13 14:07:02 - Deletions - Caused by: java.lang.NullPointerException
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMetaFromRepository(JobEntryJob.java:1353)
2019/07/13 14:07:02 - Deletions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1381)
2019/07/13 14:07:02 - Deletions - ... 7 more
2019/07/13 14:07:02 - 00_00_00_Update_BI - Starting entry [Deletions -> Dimensions]
Jul 13, 2019 2:07:02 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /i18n
2019/07/13 14:07:02 - 00_00_00_Update_BI - Starting entry [Update Dimensions]
2019/07/13 14:07:02 - Update Dimensions - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Error running job entry 'job' :
2019/07/13 14:07:02 - Update Dimensions - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleException:
2019/07/13 14:07:02 - Update Dimensions - Unexpected error during job metadata load
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.run (Job.java:384)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:497)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute (Job.java:680)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.execute (JobEntryJob.java:667)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta (JobEntryJob.java:1345)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta (JobEntryJob.java:1381)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMetaFromRepository (JobEntryJob.java:1353)
2019/07/13 14:07:02 - Update Dimensions -
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1421)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1345)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.execute(JobEntryJob.java:667)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:680)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:821)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.execute(Job.java:497)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.Job.run(Job.java:384)
2019/07/13 14:07:02 - Update Dimensions - Caused by: java.lang.NullPointerException
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMetaFromRepository(JobEntryJob.java:1353)
2019/07/13 14:07:02 - Update Dimensions - at org.pentaho.di.job.entries.job.JobEntryJob.getJobMeta(JobEntryJob.java:1381)
2019/07/13 14:07:02 - Update Dimensions - ... 9 more
2019/07/13 14:07:03 - Kitchen - Processing ended after 8 seconds.