如何从命令行 运行 pentaho 作业

How to run a pentaho job from Command Line

有一项工作大约需要 1/2 分钟才能完成,现在尝试通过命令行 运行 这项工作只会永远持续下去,无法完成。看起来我也没有从中得到任何错误。所以这项工作似乎开始了,我知道这项工作是正确的,因为它在 spoon 中工作,有什么想法吗?

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

调试:使用 PENTAHO_JAVA_HOME 调试:_PENTAHO_JAVA_HOME=C:\程序Files\Java\jre1.8.0_231 调试:_PENTAHO_JAVA=C:\程序Files\Java\jre1.8.0_231\bin\java.exe

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"\ /文件:C:\Users\a\Downloads\pdi-ce-8.3.0.0-371\data-integration\job.kjb /level:Minimal Java HotSpot(TM) 64 位服务器 VM 警告:忽略 选项 MaxPermSize=256m; 8.0 13:58:07,867 信息中删除了支持 [KarafBoot] 检查 org.pentaho.clean.karaf.cache 是否 已启用 13:58:12,006 信息 [KarafInstance]


* Karaf 实例编号:2 在 C:\Users\a\Downloads\pdi-ce-8.3.0.0- 371\data-integration.\system\karaf\caches\kitchen\data-1 FastBin 提供商 Port:52902 卡拉夫 Port:8803 OSGI 服务 Port:9052 * ****************************************************** ****************************** 2019 年 12 月 19 日 1:58:12 下午 org.apache.karaf.main.Main$KarafLockCallback lockAquired 信息:已获取锁。将启动级别设置为 100 2019/12/19 13:58:12 - 厨房 - 日志记录级别:最低 2019/12/19 13:58:12 - 厨房 - 运行 开始。 2019-12-19 13:58:15.902:INFO:oejs.Server:jetty-8.1.15.v20140411 2019-12-19 13:58:15.955:信息:oejs.AbstractConnector:开始 NIOSocketConnectorWrapper@0.0.0.0:9052 2019 年 12 月 19 日 1:58:16 下午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener 添加扩展信息: 从 bundle org.apache.cxf.cxf-rt-management 添加扩展 (182) [org.apache.cxf.management.InstrumentationManager] 2019 年 12 月 19 日 1:58:16 下午 org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions 信息:从包中添加扩展 org.apache.cxf.cxf-rt-传输-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] 2019 年 12 月 19 日 1:58:16 下午 org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler$1 onSuccess 信息:新缓存服务于 2019 年 12 月 19 日注册 13:58:17 - 工作 - 工作开始执行 2019 年 12 月 19 日 1:58:18 下午 org.apache.cxf.endpoint.ServerImpl initDestination 信息:设置 服务器的发布地址为 /lineage Dec 19, 2019 1:58:18 PM org.apache.cxf.endpoint.ServerImpl initDestination 信息:设置 服务器的发布地址为 /i18n Dec 19, 2019 1:58:19 PM org.apache.cxf.endpoint.ServerImpl initDestination 信息:设置 服务器的发布地址为 /marketplace

更新 尝试从 运行ning 开始从 Karaf 缓存中删除厨房缓存,但作业从未完成,现在我 运行ning 具有调试级别的作业并获得这些结果。仍然,工作没有比这更进一步,工作在勺子里工作,所以不能与工作相关。

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

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

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

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

08:07:33,026 INFO [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled

08:07:37,211 INFO [KarafInstance]


* Karaf Instance Number: 1 at C:\Users\a\Downloads\pdi-ce-8.3.0.0- *

* 371\data-integration.\system\karaf\caches\kitchen\data-1 *

* FastBin Provider Port:52901 *

* Karaf Port:8802 *

* OSGI Service Port:9051 *


Dec 23, 2019 8:07:38 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2019/12/23 08:07:38 - Kitchen - Logging is at level : Debug

2019/12/23 08:07:38 - Kitchen - Start of run.

2019/12/23 08:07:38 - Kitchen - Allocate new job.

2019/12/23 08:07:38 - Kitchen - Parsing command line options.

2019-12-23 08:07:43.475:INFO:oejs.Server:jetty-8.1.15.v20140411

2019-12-23 08:07:43.538:INFO:oejs.AbstractConnector:Started NIOSocketConnectorWrapper@0.0.0.0:9051

Dec 23, 2019 8:07:43 AM 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 23, 2019 8:07:43 AM 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 23, 2019 8:07:44 AM org.pentaho.caching.impl.PentahoCacheManagerFactory$RegistrationHandler onSuccess

INFO: New Caching Service registered

2019/12/23 08:07:45 - Job - Start of job execution

2019/12/23 08:07:45 - Job - exec(0, 0, START.0)

2019/12/23 08:07:45 - START - Starting job entry

2019/12/23 08:07:45 - Job - Job

Dec 23, 2019 8:07:46 AM org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /lineage

Dec 23, 2019 8:07:47 AM org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /i18n

Dec 23, 2019 8:07:48 AM org.apache.cxf.endpoint.ServerImpl initDestination

INFO: Setting the server's publish address to be /marketplace

2019/12/23 08:07:55 - Job - Triggering heartbeat signal for Job at every 10 seconds

一定是更深层次的东西被破坏了,因为我删除了所有文件,下载了最新版本,它起作用了。

从命令行

到 运行 你必须在命令

下面 运行

path to kitchen.sh/kitchen.sh -file=".ktr filename" --level=Debug >> "log.txt"