Zookeeper查看并修改Canal位点position信息-创新互联-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

Zookeeper查看并修改Canal位点position信息-创新互联

文章目录
  • 1. ZK地址
  • 2. 目录
  • 3. 命令及结果
  • 4. mysql查看binlog目录

创新互联专业提供多线BGP机房服务,为用户提供五星数据中心、电信、双线接入解决方案,用户可自行在线购买多线BGP机房服务,并享受7*24小时金牌售后服务。1. ZK地址
hd-master-100
hd-master-101
hd-master-102
2. 目录
cd /opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/zookeeper/bin
3. 命令及结果
  • 进入zk命令行
sh ./zkCli.sh
  • 查看zk目录数据
ls /otter/canal/destinations
  • 获取zk数据
get /otter/canal/destinations/cps_yangguang_slave/1001/cursor
  • 结果:
{"@type":"com.alibaba.otter.canal.protocol.position.LogPosition","identity":{"slaveId":-1,"sourceAddress":{"address":"192.168.31.74","port":3306}},"postion":{"gtid":"","included":false,"journalName":"mysql-bin.005380","position":229466749,"serverId":3379404740,"timestamp":1619606927000}}
  • 修改canal position
set /otter/canal/destinations/cps_yangguang_slave/1001/cursor {"@type":"com.alibaba.otter.canal.protocol.position.LogPosition","identity":{"slaveId":-1,"sourceAddress":{"address":"192.168.31.74","port":3306}},"postion":{"gtid":"","included":false,"journalName":"mysql-bin.005380","position":229466749,"serverId":3379404740,"timestamp":1619606927000}}
4. mysql查看binlog目录
show binlog events in 'mysql-binilog-xxxx' from 0000001 limit 10;

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


本文标题:Zookeeper查看并修改Canal位点position信息-创新互联
网址分享:http://kswsj.cn/article/gejji.html

其他资讯