title: How to run a pentaho job from Command Line
body: <p>Have a job which takes around 1/2 minutes to finish, now trying to run this job through the command line just goes on forever and doesn't finish. It doesn't look like I get any errors from this either. So the job seems to be starting and I know the job works correctly since it works within spoon, any ideas?</p>
  
  <blockquote>
    <blockquote>
      <p>C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration> Kitchen.bat
       /file:C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration\job.kjb
      /level:Minimal </p>
    </blockquote>
    
    <p>DEBUG: Using PENTAHO_JAVA_HOME
    DEBUG:  _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.8.0_231 DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.8.0_231\bin\java.exe</p>
    
    <p>C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration>"C:\Program
    Files\Java\jre1.8.0_231\bin\java.exe"  "-Xms1024m" "-Xmx2048m"
    "-XX:MaxPermSize=256m" "-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:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration"\
    /file:C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration\job.kjb
    /level:Minimal Java HotSpot(TM) 64-Bit Server VM warning: ignoring
    option MaxPermSize=256m; support was removed in 8.0 13:58:07,867 INFO 
    [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is
    enabled 13:58:12,006 INFO  [KarafInstance]</p>
    
    <hr>
    
    <p><strong>* Karaf Instance Number: 2 at C:\Users\a\Downloads\pdi-ce-8.3.0.0- <em></strong>
    <strong></em>   371\data-integration.\system\karaf\caches\kitchen\data-1             <em></strong>
    <strong></em> FastBin Provider Port:52902                                             <em></strong>
    <strong></em> Karaf Port:8803                                                         <em></strong>
    <strong></em> OSGI Service Port:9052                                                  *</strong>
    ******************************************************************************* Dec 19, 2019 1:58:12 PM org.apache.karaf.main.Main$KarafLockCallback
    lockAquired INFO: Lock acquired. Setting startlevel to 100 2019/12/19
    13:58:12 - Kitchen - Logging is at level : Minimal 2019/12/19 13:58:12
    - Kitchen - Start of run. 2019-12-19 13:58:15.902:INFO:oejs.Server:jetty-8.1.15.v20140411 2019-12-19
    13:58:15.955:INFO:oejs.AbstractConnector:Started
    NIOSocketConnectorWrapper@0.0.0.0:9052 Dec 19, 2019 1:58:16 PM
    org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions INFO:
    Adding the extensions from bundle org.apache.cxf.cxf-rt-management
    (182) [org.apache.cxf.management.InstrumentationManager] Dec 19, 2019
    1:58:16 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener
    addExtensions INFO: Adding the extensions from bundle
    org.apache.cxf.cxf-rt-transports-http (183)
    [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]
    Dec 19, 2019 1:58:16 PM
    org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$1
    onSuccess INFO: New Caching Service registered 2019/12/19 13:58:17 -
    job - Start of job execution Dec 19, 2019 1:58:18 PM
    org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the
    server's publish address to be /lineage Dec 19, 2019 1:58:18 PM
    org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the
    server's publish address to be /i18n Dec 19, 2019 1:58:19 PM
    org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the
    server's publish address to be /marketplace</p>
  </blockquote>
  
  <p><strong>Update</strong> 
  Tried deleting kitchen cache from Karaf cache starting running but job never finished, now I'm running the job with a debug level and getting these results. Still, the job doesn't get any further than this, Job works in spoon so cannot be related to the job.</p>
  
  <blockquote>
    <p>C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration>kitchen.bat
    /file:C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration\Job.kjb
    /level:Debug</p>
    
    <p>DEBUG: Using PENTAHO_JAVA_HOME</p>
    
    <p>DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jre1.8.0_231</p>
    
    <p>DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jre1.8.0_231\bin\java.exe</p>
    
    <p>C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration>"C:\Program
    Files\Java\jre1.8.0_231\bin\java.exe"  "-Xms1024m" "-Xmx2048m"
    "-XX:MaxPermSize=256m" "-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:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration"\
    /file:C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration\Job.kjb
    /level:Debug</p>
    
    <p>Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
    MaxPermSize=256m; support was removed in 8.0</p>
    
    <p>08:07:33,026 INFO  [KarafBoot] Checking to see if
    org.pentaho.clean.karaf.cache is enabled</p>
    
    <p>08:07:37,211 INFO  [KarafInstance]</p>
    
    <hr>
    
    <p><strong>* Karaf Instance Number: 1 at C:\Users\a\Downloads\pdi-ce-8.3.0.0- *</strong></p>
    
    <p><strong>*   371\data-integration.\system\karaf\caches\kitchen\data-1             *</strong></p>
    
    <p><strong>* FastBin Provider Port:52901                                             *</strong></p>
    
    <p><strong>* Karaf Port:8802                                                         *</strong></p>
    
    <p><strong>* OSGI Service Port:9051                                                  *</strong></p>
    
    <hr>
    
    <p>Dec 23, 2019 8:07:38 AM org.apache.karaf.main.Main$KarafLockCallback
    lockAquired</p>
    
    <p>INFO: Lock acquired. Setting startlevel to 100</p>
    
    <p>2019/12/23 08:07:38 - Kitchen - Logging is at level : Debug</p>
    
    <p>2019/12/23 08:07:38 - Kitchen - Start of run.</p>
    
    <p>2019/12/23 08:07:38 - Kitchen - Allocate new job.</p>
    
    <p>2019/12/23 08:07:38 - Kitchen - Parsing command line options.</p>
    
    <p>2019-12-23 08:07:43.475:INFO:oejs.Server:jetty-8.1.15.v20140411</p>
    
    <p>2019-12-23 08:07:43.538:INFO:oejs.AbstractConnector:Started
    NIOSocketConnectorWrapper@0.0.0.0:9051</p>
    
    <p>Dec 23, 2019 8:07:43 AM
    org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions</p>
    
    <p>INFO: Adding the extensions from bundle
    org.apache.cxf.cxf-rt-management (182)
    [org.apache.cxf.management.InstrumentationManager]</p>
    
    <p>Dec 23, 2019 8:07:43 AM
    org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions</p>
    
    <p>INFO: Adding the extensions from bundle
    org.apache.cxf.cxf-rt-transports-http (183)
    [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]</p>
    
    <p>Dec 23, 2019 8:07:44 AM
    org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$1
    onSuccess</p>
    
    <p>INFO: New Caching Service registered</p>
    
    <p>2019/12/23 08:07:45 - Job - Start of job execution</p>
    
    <p>2019/12/23 08:07:45 - Job - exec(0, 0, START.0)</p>
    
    <p>2019/12/23 08:07:45 - START - Starting job entry</p>
    
    <p>2019/12/23 08:07:45 - Job - Job</p>
    
    <p>Dec 23, 2019 8:07:46 AM org.apache.cxf.endpoint.ServerImpl
    initDestination</p>
    
    <p>INFO: Setting the server's publish address to be /lineage</p>
    
    <p>Dec 23, 2019 8:07:47 AM org.apache.cxf.endpoint.ServerImpl
    initDestination</p>
    
    <p>INFO: Setting the server's publish address to be /i18n</p>
    
    <p>Dec 23, 2019 8:07:48 AM org.apache.cxf.endpoint.ServerImpl
    initDestination</p>
    
    <p>INFO: Setting the server's publish address to be /marketplace</p>
    
    <p>2019/12/23 08:07:55 - Job - Triggering heartbeat signal
    for Job at every 10 seconds</p>
  </blockquote>