Kettle在windows下分布式集群的搭建

时间:2023-03-08 22:21:53
Kettle在windows下分布式集群的搭建

集群的搭建

我这里用的是kettle7.1版本的

下载解压

Kettle在windows下分布式集群的搭建

我们打开kettle的安装目录,进入到data-integration->pwd目录,找到carte-config-master-8080.xml文件

Kettle在windows下分布式集群的搭建

我这里使用的是notepad工具打开的,carte-config-master-8080.xml文件,文件主要是进行master主机配置。

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

在本机部署的集群环境中,建议hostname填localhost

接下来编辑.carte-config-8081.xml文件,

Kettle在windows下分布式集群的搭建

其中master1中,name、hostname、port需要和carte-config-master-8080.xml中完全一致。

编辑.carte-config-8082.xml文件

Kettle在windows下分布式集群的搭建

username和password并不是指主机的登陆账号和密码,是集群的账号密码,该账号密码是集群连接的依据,

账号密码是通过混淆的方式保存在pwd文件,kettle默认的账号密码是cluster/cluster

打开运行窗口(用管理员身份打开),进入到kettle解压的路径下

Kettle在windows下分布式集群的搭建

输入carte.bat pwd\carte-config-master-8080.xml,启动master节点

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

再打开一个窗口,也是进到kettle的解压目录下,执行命令carte.bat pwd\carte-config-8081.xml,则启动8081端口的子服务器。

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

再打开第三个cmd窗口,也是进到kettle的解压目录下,执行命令carte.bat pwd\carte-config-8082.xml,则启动8082端口的子服务器

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

这个时候在浏览器输入http://localhost:8080/

Kettle在windows下分布式集群的搭建

用户名 和密码都是 cluster

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

表示主节点已经启动完毕。输入localhost:8081及localhost:8082查看子服务器状态。

用户名和密码也都是cluster

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建

另一个子节点也是一样的

Kettle在windows下分布式集群的搭建

Kettle在windows下分布式集群的搭建