环境准备
1. otter manager依赖于mysql进行配置信息的存储,所以需要预先安装mysql,并初始化otter manager的系统表结构
wget https://raw.github.com/alibaba/otter/master/manager/deployer/src/main/resources/sql/otter-manager-schema.sql
在mysql命令行执行source otter-manager-schema.sql
2. 整个otter架构依赖了zookeeper进行多节点调度,所以需要预先安装zookeeper,不需要初始化节点,otter程序启动后会自检.
manager需要在otter.properties中指定一个就近的zookeeper集群机器
启动步骤
manager安装https://github.com/alibaba/otter/wiki/Manager_Quickstart
1. 下载otter manager
wget https://github.com/alibaba/otter/releases/download/otter-x.y.z/manager.deployer-x.y.z.tar.gz
2. 解压缩
tar -zxvf manager.deployer-$version.tar.gz
3. 配置修改vi otter.properties
otter.domainName = blg-otter.imrfresh.com
## otter manager http port
otter.port = 8080
## otter manager database config
otter.database.driver.class.name = com.mysql.jdbc.Driver
otter.database.driver.url = jdbc:mysql://10.*.*.*:3306/otter
otter.database.driver.username = username
otter.database.driver.password = password
otter.zookeeper.cluster.default = ip:2181
4. ./bin/start.sh
启动manager服务
配个隧道,本地配映射,就可以访问otterweb 界面
5.完成manager安装后,在otter-manager的web界面添加zookeeper集群
6.在manager页面为node定义配置信息,并生一个唯一id
node安装https://github.com/alibaba/otter/wiki/Node_Quickstart
1. 下载otter node
wget https://github.com/alibaba/otter/releases/download/otter-x.y.z/node.deployer-x.y.z.tar.gz
2. 解压缩
tar -zxvf node.deployer-$version.tar.gz
3. 配置修改
a. nid配置
echo 1 > conf/nid
b. vi conf/otter.properties
otter.manager.address = 10.7.10.37:1099
4. ./bin/start.sh
启动node服务
查看node.log日志,查看manager-web界面查看node是否启动
配置
数据源,数据表,canal,channel,pipeline,
pipeline配置完成,添加表对应关系,添加表对应关系,启用channel,正常的话,会有实时的数据,否则看日志解决对应的问题
数据源的格式
数据库开启binlog
数据库设置 binlog_format ROW
给同步的账户赋同步权限
本文档详细介绍了如何搭建阿里Otter,包括环境准备、Otter Manager与Node的安装步骤,以及配置过程。首先,确保安装了MySQL和Zookeeper,接着分别下载并配置Manager和Node,启动服务。在Manager的Web界面完成配置后,启动Node服务,检查日志以确保正常运行。最后,介绍了数据源格式和必要的数据库配置,如binlog_format设置为ROW,并为同步账户赋予相应权限。
5501

被折叠的 条评论
为什么被折叠?



