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"
相关推荐
敲代码敲到头发茂密13 分钟前
MySQL索引、B+树相关知识总结
java·数据结构·数据库·b树·mysql·算法
米饭是菜qy25 分钟前
MySQL 如何用C语言连接
数据库·mysql
feilieren1 小时前
MySQL 迁移 dm
数据库
打码人的日常分享1 小时前
智慧化工园区解决方案,数字化转型助力化工园区升级(PPT)
大数据·数据库·web安全·系统安全·规格说明书
看山还是山,看水还是。1 小时前
Redis 命令
前端·数据库·redis·bootstrap
不二人生2 小时前
SQL面试题——飞猪SQL面试 重点用户
数据库·sql·面试
小新_-2 小时前
第五章:存储过程和触发器
数据库
gsls2008082 小时前
小型kv数据库leveldb配合grpc实现网络访问
数据库·grpc·leveldb
大王只是带我巡了个山2 小时前
02-1_MVCC版本链清理
数据库·mysql·mvcc·多版本·并发机制·版本链管理·mvcc 版本链管理
一只专注api接口开发的技术猿3 小时前
python 京东api怎么写
大数据·开发语言·数据库·python