安装环境:centos7
kettle版本:pdi-ce-7.1.0.0-12.zip
需要JDK环境为1.8
需要卸载自带JDK
一、安装JDK1.8,我的路径是/usr/local下
配置Java环境变量
[[email protected] local]# vim /etc/profile
export JAVA_HOME=/usr/local/jdk1.8.0_11
export JAVA_BIN=/usr/local/jdk1.8.0_11/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
[[email protected] local]# source /etc/profile
二、安装各种依赖,解决各种错误
[[email protected] local]# yum -y install epel-release
[[email protected] local]# yum -y install webkitgtk
[[email protected] local]# yum -y install redhat-lsb
下载xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar
[[email protected] local]# tar -xvf xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar
[[email protected] local]# cd ./xulrunner
[[email protected] local]# ./xulrunner -register-global
三、安装kettle
[[email protected] local]# unzip pdi-ce-7.1.0.0-12.zip
[[email protected] local]# cd data-integration/
[[email protected] data-integration]# chmod +x -R *.sh
[[email protected] data-integration]# ./kitchen.sh
回到Linux图形界面中打开终端,执行操作
[[email protected] data-integration]# ./spoon.sh &
[1] 16805
[[email protected] data-integration]# Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
14:42:11,126 INFO [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
14:42:11,477 INFO [KarafInstance]
*******************************************************************************
*** Karaf Instance Number: 1 at /usr/local/data-integration/./system/karaf/ ***
*** caches/spoon/data-1 ***
*** FastBin Provider Port:52901 ***
*** Karaf Port:8802 ***
*** OSGI Service Port:9051 ***
*******************************************************************************
到这里,除去第一个warning警告之外,接下来下面没有error的错误了,说明就可以了。
安装到此结束。
安装中踩到的坑:
一、当遇到的错误是:
2017/09/25 13:52:55 - [email protected] - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Could not open a browser
2017/09/25 13:52:56 - [email protected] - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME=‘‘] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
2017/09/25 13:52:56 - [email protected] - no swt-mozilla-gtk-4335 in java.library.path
2017/09/25 13:52:56 - [email protected] - no swt-mozilla-gtk in java.library.path
2017/09/25 13:52:56 - [email protected] - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录
2017/09/25 13:52:56 - [email protected] - Can‘t load library: /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so
就是需要安装xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar来解决。
二、遇到这个错误:
2017/09/25 13:41:04 - [email protected] - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Could not execute command
2017/09/25 13:41:04 - [email protected] - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : java.io.IOException: Cannot run program "lsb_release": error=2, 没有那个文件或目录
就是需要yum -y install redhat-lsb来解决。