参考: http://fcorti.com/2016/12/05/installing-pentaho-data-integration-7/
1. 安装JAVA运行环境
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
完成后检查版本信息
java -version
然后检查用户环境信息
env | grep JAVA_HOME
这个时候提示一般是没有的,用如下命令修改
nano ~/.bashrc
打开后将下面信息加入文件,然后按CTRL+X 然后点Y保存退出
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
重新加载bash shell
source .bashrc
再次运行
env | grep JAVA_HOME
看到如下信息
JAVA_HOME=/usr/lib/jvm/java-8-oracle
到SourceForge查找PDI最新版本下载地址:https://sourceforge.net/projects/pentaho/files/Data%20Integration/7.0/
用如下命令下载:
sudo wget "https://downloads.sourceforge.net/project/pentaho/Data%20Integration/7.1/pdi-ce-7.1.0.0-12.zip"
完成后
pdi-ce-7.1.0.0-12.zip?r=https%3A%2F 100%[=================================================================>] 861.99M 1.91MB/s in 7m 39s
2017-09-06 06:19:28 (1.88 MB/s) - ‘pdi-ce-7.1.0.0-12.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpentaho%2Ffiles%2FData%2520Integration%2F7.0%2F&ts=1504678217&use_mirror=superb-dca2’ saved [903861282/903861282]
文件下载后默认保存在当前目前下,可用 ls 查看
:~$ ls
pdi-ce-7.1.0.0-12.zip
把文件移到/opt 然后解压
sudo mv pdi-ce-7.1.0.0-12.zip /opt
安装unzip包
sudo apt-get install unzip
unzip pdi压缩包
sudo unzip pdi-ce-7.1.0.0-12.zip
进入data-integration文件夹,运行
./spoon.sh
提示错误:
no swt-pi-gtk-4335 in java.library.path
安装
sudo apt-get install libswt-gtk-3-java
运行kitchen,提示如下,安装完成
:/opt/data-integration$ ./kitchen.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Options:
-rep = Repository name
-user = Repository username
-pass = Repository password
-job = The name of the job to launch
-dir = The directory (dont forget the leading /)
-file = The filename (Job XML) to launch
-level = The logging level (Basic, Detailed, Debug, Rowlevel, Error, Minimal, Nothing)
-logfile = The logging file to write to
-listdir = List the directories in the repository
-listjobs = List the jobs in the specified directory
-listrep = List the available repositories
-norep = Do not log into the repository
-version = show the version, revision and build date
-param = Set a named parameter
-listparam = List information concerning the defined parameters in the specified job.
-export = Exports all linked resources of the specified job. The argument is the name of a ZIP file.
-custom = Set a custom plugin specific option as a String value in the job using
-maxloglines = The maximum number of log lines that are kept internally by Kettle. Set to 0 to keep all rows (default)
-maxlogtimeout = The maximum age (in minutes) of a log line while being kept internally by Kettle. Set to 0 to keep all rows indefinitely (default)