由于kettle8.2在Linux上安装后,共享资源库创建遇到一系列问题,所以就换成kettle9.3
kettle9.3.0安装包网盘链接
链接:https://pan.baidu.com/s/1MS8QBhv9ukpqlVQKEMMHQA?pwd=dqm0
提取码:dqm0
[root@hurys22 ui]# cd /opt/install/kettle9.3/
[root@hurys22 kettle9.3]# ll
总用量 1128840
-rw-r--r-- 1 root root 1155928960 8月 14 17:01 pdi-ce-9.3.0.0-428.zip
[root@hurys22 kettle9.3]# unzip pdi-ce-9.3.0.0-428.zip
[root@hurys22 kettle9.3]# chmod -R 755 data-integration/
[root@hurys22 kettle9.3]# cd ./data-integration/
[root@hurys22 data-integration]# ./spoon.sh
启动后,自动会弹出kettle任务页面
也可以打开任务,也可以打开创建共享资源库的页面
到这里Linux上安装Kettle9.3就结束了,不过中间可能会遇到一些问题
17:22:40,062 ERROR [HttpServiceStarted] Could not start the servlet context for context path []
java.lang.IllegalStateException: Invalid BundleContext.
这是由于/root/.kettle文件里有之前kettle8.2的文件,所以启动kettle9.3后会出现闪退。
有博客说是只要删除db.cache-8.2.0.0-342,其他不用删除,不要我这边直接全掉删掉
然后,这个报错就解决了
2023/08/14 19:58:46 - org.pentaho.di.ui.util.EnvironmentUtils@29f38091 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy) : Could not open a browser
2023/08/14 19:58:46 - org.pentaho.di.ui.util.EnvironmentUtils@29f38091 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy) : org.eclipse.swt.SWTError: No more handles because no underlying browser available.
2023/08/14 19:58:46 - org.pentaho.di.ui.util.EnvironmentUtils@29f38091 - SWT on GTK 2.x detected. It is reccomended to use SWT on GTK 3.x and Webkit2 API.
[root@hurys22 data-integration]# vi spoon.sh
把export SWT_GTK3=0变成export SWT_GTK3=1
然后,重新启动kettle9.3后,页面会出现
kettle9.3可以加载旧有的kettle任务,而且可以创建资源库链接
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - Caused by: java.io.IOException: error=2, 没有那个文件或目录
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - at java.lang.UNIXProcess.forkAndExec(Native Method)
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - at java.lang.UNIXProcess.
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - at java.lang.ProcessImpl.start(ProcessImpl.java:134)
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - ... 15 more
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy) : Could not execute command
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy) : java.io.IOException: Cannot run program "lsb_release": error=2, 没有那个文件或目录
2023/08/15 20:26:08 - org.pentaho.di.ui.util.EnvironmentUtils@6f5bd362 - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[root@linux128 data-integration]# yum install -y redhat-lsb
上面三个问题尤其一般会遇到第二个和第三个问题解决后,Linux上安装Kettle9.3就可以正常启动了!!!
都是坑啊,总结此篇,公诸于众,希望可以帮助到想学习kettle的你!