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"
相关推荐
5***E685几秒前
mysql重置root密码(适用于5.7和8.0)
数据库·mysql·adb
q***69771 分钟前
使用 Qt 插件和 SQLCipher 实现 SQLite 数据库加密与解密
数据库·qt·sqlite
t***82112 分钟前
【Oracle11g SQL详解】日期和时间函数:SYSDATE、TO_DATE、TO_CHAR 等
数据库·sql
Fantasy丶夜雨笙歌5 分钟前
SQL综合实战:从基础约束到高级应用的完整指南
数据库·sql
T***74258 分钟前
redis连接服务
数据库·redis·bootstrap
蜡笔小炘31 分钟前
Mysql 结课项目报告
数据库·adb
合作小小程序员小小店37 分钟前
桌面开发,点餐管理系统开发,基于C#,winform,sql server数据库
开发语言·数据库·sql·microsoft·c#
一 乐37 分钟前
购物|明星周边商城|基于springboot的明星周边商城系统设计与实现(源码+数据库+文档)
java·数据库·spring boot·后端·spring
科普瑞传感仪器39 分钟前
从轴孔装配到屏幕贴合:六维力感知的机器人柔性对位应用详解
前端·javascript·数据库·人工智能·机器人·自动化·无人机
m***923844 分钟前
Window下Redis的安装和部署详细图文教程(Redis的安装和可视化工具的使用)
数据库·redis·缓存