Installation and use of data migration Kettle

Premise
First, install the JDK java environment
1, Kettle is written in pure Java open source ETL tool, and is currently Kettle7 Kettle8 need Java8 or more to run properly. So before the opening run Kettle check Java environment is configured correctly.

Installation and use of data migration Kettle

It is clear that the current environment is not installed JDK java environment, then the next we go JDK java official website to download the installation package.

JDK download URL: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Installation and use of data migration Kettle

According to their version of JDK download the corresponding system environment, here it is the windows 64-bit operating system.

Installation process:
1) After installing the download, here is the choice of the default installation, you can install to the appropriate location according to their habits, to which this installation path is optional.

Installation and use of data migration Kettle

2) Here is the Java installation, you can also click Change to change to another letter the following (I hereby default installation):

Installation and use of data migration Kettle

After 3) and other Java JDK installation to complete the installation to this end, you can click the Close.

Installation and use of data migration Kettle

Java test whether the installation was successful, obviously still not installed successfully, there is no reason to add JAVA environment variable.

Installation and use of data migration Kettle

Second, add the following environment variables java Computer -> Properties -> Advanced System Settings -> Environment Variables.
JAVA_HOME environment variable

Installation and use of data migration Kettle

Installation and use of data migration Kettle

Now need to create a system variable, click New under System Variables: variable name can be self-named general use JAVA_HOME, variable value of your JDK installation directory (full path), I was installed by default under the C drive:

Installation and use of data migration KettleInstallation and use of data migration Kettle
Path environment variable.

Found in the system variable in the Path variable, which is the system comes with, not new. Double-click Path, because the original variable values ​​already exist in the existing variable plus ";% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin". Note the semicolon in front.

Installation and use of data migration Kettle

CLASSPATH environment variable.

配置方法:
新建CLASSPATH变量 CLASSPATH变量名字,注意不要忘记前面的点和中间的分号。且要在英文输入的状态下的分号和逗号。

CLASSPATH :.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

Installation and use of data migration Kettle

三、 测试环境。

检验是否配置成功 运行cmd 分别输入java, java -version (java 和 -version 之间有空格)。

Installation and use of data migration Kettle

若如图所示 显示版本信息 则说明安装和配置成功。

正式开始安装Kettle

官方网址:https://community.hitachivantara.com/docs/DOC-1009855 下载最新版本即可,此包大小在860M左右。

或者是在本地git下载:http://192.168.20.12/download/dev-tool/kettle_windows.zip 这里是Windows版本

Installation and use of data migration Kettle

点击解压缩下载的压缩包

Installation and use of data migration Kettle

找到spoon.bat,双击运行,会出现下面的页面:

Installation and use of data migration Kettle

Installation and use of data migration Kettle

Installation and use of data migration Kettle

1.创建一个新的转换,点击保存到本地路径,Ctrl+s保存到本地的某个目录底下,kettle默认转换文件保存后后缀名为ktr;

Installation and use of data migration Kettle

2.右击DB连接选择新建,作用是用来连接数据库,此图为mysql为例,选择Native(JDBC方式)。在右侧把需要添加的选项填写。

Installation and use of data migration Kettle

连接名称:此次连接的名称

主机名称:数据库的ip地址

数据库名称:指的是数据库上面具体的那个库。

端口号:根据实际开放的端口填写

用户名,密码:数据库的用户名,密码

填写完相关信息,点击测试如果连接成功会弹出一个窗口显示连接的信息如图:

Installation and use of data migration Kettle

如果失败则会提示没有找到连接数据库的jdbc驱动如图,方法如下:

Installation and use of data migration Kettle

1) At this point we need to go to the official website to download jdbc driver, I have here is mysql, mysql need to go to the official website to download the data if it can find other versions of the relevant drive Quguan network, the method is the same as the procedure is as follows:

URL: https://dev.mysql.com/downloads/connector/j/

According to its own operating system to choose, windows choose flat lift independently.

Installation and use of data migration Kettle

Click to download the following Driver

Installation and use of data migration Kettle

The downloaded unpack the archive and will be driven mysql FIG.

Installation and use of data migration Kettle

The driver file into the kettle installation location path: pdi-ce-7.1.0.0-12 \ data-integration \ lib, this time you must restart the kettle, add connections DB library during the test:
Installation and use of data migration Kettle
Installation and use of data migration Kettle

Guess you like

Origin blog.51cto.com/14034751/2445984