强制关机之后,kettle启动闪退
具体可以用debug模式运行脚本来定位问题
启动之后查看运行日志
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Application\JDK
DEBUG: _PENTAHO_JAVA=C:\Application\JDK\bin\java.exeC:\Application\Kettle\data-integration>"C:\Application\JDK\bin\java.exe" --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.jar=ALL-UNNAMED "-Xms1024m" "-Xmx2048m" "-Djava.library.path=libswt\win64;/bin" -Djava.locale.providers=COMPAT,SPI "-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 /level:Debug
2024/11/11 10:06:17 - Spoon - 日志级别 : 调试
2024/11/11 10:06:17 - General - ERROR (version 9.4.0.0-343, build 0.0 from 2022-11-08 07.50.27 by buildguy) : Error starting Spoon shell
2024/11/11 10:06:17 - General - ERROR (version 9.4.0.0-343, build 0.0 from 2022-11-08 07.50.27 by buildguy) : java.lang.RuntimeException: Unable to create the database cache:
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - Couldn't read the database cache
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - : Unable to read row metadata from input stream
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - Unable to locate value meta plugin of type (id) 131072
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - Unable to locate value meta plugin of type (id) 131072
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - : Unable to read row metadata from input stream
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - Unable to locate value meta plugin of type (id) 131072
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - Unable to locate value meta plugin of type (id) 131072
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General -
2024/11/11 10:06:17 - General - at org.pentaho.di.core.DBCache.getInstance(DBCache.java:226)
2024/11/11 10:06:17 - General - at org.pentaho.di.ui.spoon.Spoon.loadSettings(Spoon.java:7479)
2024/11/11 10:06:17 - General - at org.pentaho.di.ui.spoon.Spoon.init(Spoon.java:848)
2024/11/11 10:06:17 - General - at org.pentaho.di.ui.spoon.Spoon.createContents(Spoon.java:9506)
2024/11/11 10:06:17 - General - at org.eclipse.jface.window.Window.create(Window.java:431)
2024/11/11 10:06:17 - General - at org.eclipse.jface.window.Window.open(Window.java:788)
2024/11/11 10:06:17 - General - at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9537)
2024/11/11 10:06:17 - General - at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:722)
2024/11/11 10:06:17 - General - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024/11/11 10:06:17 - General - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2024/11/11 10:06:17 - General - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024/11/11 10:06:17 - General - at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2024/11/11 10:06:17 - General - at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
stopping
查询出现异常:Couldn't read the database cache
解决方法:删除本地kettle缓存文件。一般在当前用户目录下中例如:C:\Users\1\.kettle\db.cache
或者直接删除所有目录下的所有文件
查询了其他资料,也有说内存问题的,此次修改之后未解决本机闪退问题。具体修改细节可供参考:
打开spoon.bat脚本,定位到内存大小设置这里:
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2058m" "-Xmx1024m" "-XX:MaxPermSize=256m"
可根据电脑配置进行修改:
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2058m" "-Xmx1024m" "-XX:MaxPermSize=256m"