kettle集群的部署已过了很长时间,今天突然想总结下部署过程,方便后人和自己以后部署方便。
一、运行环境
kettle众所周知是Java开发的开源项目,故kettle需要java环境,正常大型项目可能需要用到kettle的资源库配置,故需要一台数据库服务器,里面单独建立kettle的资源库(后面配置会用到),仅此而已。
二、配置文件
无论是主机还是从机都需要这两个配置文件,carte.xml和repositories.xml,其中carte.xml分主从机配置。这两个配置文件放在kettle文件的根目录下即可,下面分别说一下这两个配置文件都需要配置什么:
1、carte.xml(主机配置)
<slave_config>
<!--
Document description...
- masters: You can list the slave servers to which this slave has to report back to.
If this is a master, we will contact the other masters to get a list of all the slaves in the cluster.
- report_to_masters : send a message to the defined masters to let them know we exist (Y/N)
- slaveserver : specify the slave server details of this carte instance.
IMPORTANT : the username and password specified here are used by the master instances to connect to this slave.
-->
<slaveserver>
<name>master1</name>#kettle主机命名名称,可自拟
<hostname>1.1.1.1</hostname>#你的主机IP的地址
<port>9090</port>#端口号
<username>cluster</username>#用户名固定
<password>cluster</passwor