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"
相关推荐
敲敲敲-敲代码25 分钟前
【SQL实验】视图操作(菜单操作和命令操作)
数据库·sql·sqlserver
2401_857026231 小时前
Spring Boot技术在实验室信息管理中的应用
数据库·spring boot·php
"追风者"1 小时前
mysql数据库(六)pymysql、视图、触发器、存储过程、函数、流程控制、数据库连接池
数据库·mysql
guokanglun1 小时前
数据库视图
数据库
远歌已逝1 小时前
Oracle维护控制文件
数据库·oracle
liuxin334455661 小时前
科研实验室的数字化转型:Spring Boot系统
数据库·spring boot·php
guokanglun1 小时前
数据库视图-多表
数据库
时间_已被注册2 小时前
Oracle - 多区间按权重取值逻辑 ,分时区-多层级-取配置方案(二)
数据库·oracle
HilariousDog2 小时前
Mysql数据库1——基本原理和基础操作
数据库·mysql·oracle
小小不董2 小时前
Oracle OCP认证考试考点详解082系列22
linux·运维·服务器·数据库·oracle·dba