Linux环境下kettle集群部署小记(本文部署一主三从服务器)

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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值