Kettle启动闪退(Couldn‘t read the database cache)

强制关机之后,kettle启动闪退

具体可以用debug模式运行脚本来定位问题

启动之后查看运行日志

bash 复制代码
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Application\JDK
DEBUG: _PENTAHO_JAVA=C:\Application\JDK\bin\java.exe

C:\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脚本,定位到内存大小设置这里:

bash 复制代码
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2058m" "-Xmx1024m" "-XX:MaxPermSize=256m"

可根据电脑配置进行修改:

bash 复制代码
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2058m" "-Xmx1024m" "-XX:MaxPermSize=256m"
相关推荐
山猪打不过家猪2 小时前
ASP.NET Core Clean Architecture
java·数据库·asp.net
qwy7152292581632 小时前
13-R数据重塑
服务器·数据库·r语言
Bio Coder2 小时前
R语言安装生物信息数据库包
开发语言·数据库·r语言
钊兵3 小时前
数据库驱动免费下载(Oracle、Mysql、达梦、Postgresql)
数据库·mysql·postgresql·oracle·达梦·驱动
weixin_425878234 小时前
Redis复制性能优化利器:深入解析replica-lazy-flush参数
数据库·redis·性能优化
左灯右行的爱情4 小时前
Redis数据结构总结-listPack
数据结构·数据库·redis
隔壁老王1565 小时前
mysql实时同步到es
数据库·mysql·elasticsearch
想要打 Acm 的小周同学呀5 小时前
Redis三剑客解决方案
数据库·redis·缓存
rkmhr_sef5 小时前
Redis 下载与安装 教程 windows版
数据库·windows·redis