Kettle-linux部署方案
部署过程:
环境准备:jdk1.8,kettle8.1(kettle和jdk版本需要match)
将data-integration.zip解压
# unzip data-integration.zip
# cd ./data-integration/
# ./kitchen.sh
问题1.#./kitchen.sh
##############
WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable
Consider installing the package with apt-get or yum.
e.g. 'sudo apt-get install libwebkitgtk-1.0-0'
####################
原因:kettle需要linux客户端支持图形化服务,lib包可视化环境需要安装webkitgtk软件包。
解决办法:
上传下面3个rpm包到/regulatoryreport/ups/,安装:
# sudo rpm -ivh libwebkitgtk1.0_2-1.2.7-4.mga1.i586.rpm --nodeps --force
# sudo rpm -ivh lib64webkitgtk1.0_0-2.4.11-6-omv4000.x86_64.rpm --nodeps --force
# sudo rpm -ivh webkitgtk-1.4.3-9.el6_6.x86_64.rpm --nodeps –force
重启kettle:
# cd /regulatoryreport/ups/data-integration/
# ./spoon.sh
打印下面日志,说明软件包OK,问题解决。
问题2:#./spoon.sh
2020/11/25 04:49:30 - org.pentaho.di.ui.util.EnvironmentUtils@94362cfa - Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
2020/11/25 04:49:30 - org.pentaho.di.ui.util.EnvironmentUtils@94362cfa - swt-mozilla-gtk-4335 (Not found in java.library.path)
2020/11/25 04:49:30 - org.pentaho.di.ui.util.EnvironmentUtils@94362cfa - swt-mozilla-gtk (Not found in java.library.path)
2020/11/25 04:49:30 - org.pentaho.di.ui.util.EnvironmentUtils@94362cfa - /home/a025088/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so (libxpcom.so: 无法打开共享对象文件: 没 有那个文件或目录)
2020/11/25 04:49:30 - org.pentaho.di.ui.util.EnvironmentUtils@94362cfa - /home/a025088/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so (/home/a025088/.swt/lib/linux/x86_64/liblib swt-mozilla-gtk.so.so: 无法打开共享对象文件: 没有那个文件或目录)
原因:/home/a025088/.swt/lib/linux/x86_64/缺少so文件
解决办法:安装xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar来解决。
将xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar 上传到用户某一路径如/regulatoryreport/ups/,安装:
# tar -xvf xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar
解压后,tar包同路径下会生成一个名为ulrunner的文件,进入到xulrunner路径:
# cd ./xulrunner
# sudo ./xulrunner --register-global
这时/home/a025088/路径会生成.gre.d/1.9.2.28pre.conf
检查so文件是否生成:
# ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
Configuration file '/home/a025088/.gre.d/1.9.2.28pre.conf' already exists.
此时,报错信息:/home/a025088/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so (libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录)不会再出现