Windows上kettle集群搭建(三台)10.0.130.101(master) 10.0.130.101(slave) 10.0.130.101(slave)
1.解压kettle包到本地文件夹
2.首先确认本机是否有tomcat运行,因为kettle集群的master默认采用8080端口,这和tomcat的默认端口是冲突的,当然可以进行端口修改,自定义使用端口
3.打开kettle的安装目录,进入到data-integration->pwd目录,找到carte-config-master-8080.xml文件
4.打开carte-config-master-8080.xml文件
master
10.0.130.101
8080
Y
5.carte-config-8081
<masters>
<slaveserver>
<name>master</name>
<hostname>10.0.130.101</hostname>
<port>8080</port>
<username>kettle</username>
<password>kettle123</password>
<master>Y</master>
</slaveserver>
</masters>
<report_to_masters>Y</report_to_masters>
<slaveserver>
<name>slave1</name>
<hostname>10.0.130.102</hostname>
<port>8081</port>
<username>kettle</username>
<password>kettle123</password>
<master>N</master>
</slaveserver>
slaveserver>
<name>slave2</name>
<hostname>10.0.130.103</hostname>
<port>8082</port>
<username>kettle</username>
<password>kettle123</password>
<master>N</master>
</slaveserver>
6.carte-config-8082
<masters>
<slaveserver>
<name>master</name>
<hostname>10.0.130.101</hostname>
<port>8080</port>
<username>kettle</username>
<password>kettle123</password>
<master>Y</master>
</slaveserver>
</masters>
<report_to_masters>Y</report_to_masters>
<slaveserver>
<name>slave1</name>
<hostname>10.0.130.102</hostname>
<port>8081</port>
<username>kettle</username>
<password>kettle123</password>
<master>N</master>
</slaveserver>
slaveserver>
<name>slave2</name>
<hostname>10.0.130.103</hostname>
<port>8082</port>
<username>kettle</username>
<password>kettle123</password>
<master>N</master>
</slaveserver>
7.三台机器上的文件都是这样配置
8.集群启动。在开始菜单中启动命令提示符(管理员),进入到data-integration目录下,输入carte.bat pwd\carte-config-master-8080.xml,启动master节点。
9.在启动了三台集群服务器之后,在浏览器中输入localhost:8080