mysql+zookper+canal 환경에서position을 수정하는 방법

2667 단어 canal
 canal position :
 : mysql binlog , position, 
	 binlog :show binary logs;
	 binlog :show binlog events in "mysql-bin.000897"; 
	 binlog :show master status;
 : canal server , 
cd /u02/tomcat/canal/bin      
./stop.sh
 : zookper destination
 position :get /otter/canal/destinations/deatinationName/1001/cursor
 position:set /otter/canal/destinations/deatinationName/1001/cursor  {"@type":"com.alibaba.otter.canal.protocol.position.LogPosition","identity":{"slaveId":-1,"sourceAddress":{"address":"xx.xx.xx.xx","port":xxxx}},"postion":{"included":false,"journalName":"mysql-bin.000906","position":141201179,"serverId":1,"timestamp":1571019574000}}
cZxid = 0x15247db
ctime = Sat Oct 12 18:05:00 CST 2019
mZxid = 0x1552676
mtime = Mon Oct 14 10:19:35 CST 2019
pZxid = 0x15247db
cversion = 0
dataVersion = 97
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 268
numChildren = 0
 : canal server
cd /u02/tomcat/canal/bin      
./startup.sh

좋은 웹페이지 즐겨찾기