Centos6.5安装kettle6.1

来源:互联网 发布:c语言有哪些数学函数 编辑:程序博客网 时间:2024/05/16 02:53

kettle下载 url https://sourceforge.net/projects/pentaho/files/Data%20Integration/

默认大家都已经安装好了jdk

[kettle@SZB-L0038784 opt]$ java -versionjava version "1.7.0_45"OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)[kettle@SZB-L0038784 opt]$ echo $JAVA_HOME/usr/lib/jvm/jre-1.7.0-openjdk.x86_64[kettle@SZB-L0038784 opt]$ 

首先解压这个包
用 unzip kettle-sdk-plugin-assembly-6.1.0.1-196.zip
在用unzip pdi-ce-6.1.0.1-196.zip
得到的目录结构是这样的

[kettle@SZB-L0038784 opt]$ lltotal 906352drwxr-xr-x 15 kettle kettle      4096 Apr  7  2016 data-integrationdrwxr-xr-x  6 kettle kettle      4096 Apr  7  2016 kettle-sdk-database-plugindrwxr-xr-x  7 kettle kettle      4096 Apr  7  2016 kettle-sdk-embedding-samplesdrwxr-xr-x  5 kettle kettle      4096 Apr  7  2016 kettle-sdk-jobentry-plugindrwxr-xr-x  6 kettle kettle      4096 Apr  7  2016 kettle-sdk-partitioner-plugin-rw-r--r--  1 kettle kettle 127461822 Dec  7 07:30 kettle-sdk-plugin-assembly-6.1.0.1-196.zipdrwxr-xr-x  5 kettle kettle      4096 Apr  7  2016 kettle-sdk-step-plugin-rw-r--r--  1 kettle kettle 800143419 Dec  7 07:30 pdi-ce-6.1.0.1-196.zip-rw-r--r--  1 kettle kettle    466873 Apr  7  2016 PDI_Icon_Guide.ai

进入目录data-integration中

chmod u+x *.sh 

执行 kitchen.sh 脚本
如果看到了如下的信息说明kettle部署成功了

[kettle@SZB-L0038784 data-integration]$ ./kitchen.sh 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 <NAME>=<VALUE>. For example -param:FILE=customers.csv  -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 <NAME>=<Value>, for example: -custom:COLOR=Red  -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)

启动设计器

[kettle@SZB-L0038784 data-integration]$ ./spoon.sh org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]        at org.eclipse.swt.SWT.error(Unknown Source)        at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)        at org.eclipse.swt.widgets.Display.create(Unknown Source)        at org.eclipse.swt.graphics.Device.<init>(Unknown Source)        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)        at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:619)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:606)        at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)

因为centos没有启动图形
安装图形工具
安装 vncserver

[root@SZB-L0038784 ~]# yum install vnc vnc-server

启动服务

[root@SZB-L0038784 ~]# vncserverYou will require a password to access your desktops.Password:Verify:xauth:  creating new authority file /root/.XauthorityNew 'SZB-L0038784:1 (root)' desktop is SZB-L0038784:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/SZB-L0038784:1.log[root@SZB-L0038784 ~]# 

启动成功界面
这里写图片描述

0 0
原创粉丝点击