当前位置:网站首页>Ticdc synchronization task
Ticdc synchronization task
2022-06-13 07:02:00 【Lao Wang's notes】
Create synchronization tasks
# tiup cdc cli changefeed create --pd="http://XX.XX.XX.XX:2379" --sink-uri="mysql://wang:[email protected]:3358"
fail to open MySQL connection: [CDC:ErrMySQLConnectionError]Error 1298: Unknown or incorrect time zone: 'Asia/Shanghai': Error 1298: Unknown or incorrect time zone: 'Asia/Shanghai'
Error report in execution , This is because downstream MySQL Time zone not loaded , Can pass mysql_tzinfo_to_sql Command to load the time zone , After loading, you can create tasks or synchronize tasks normally .
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -pLog in to TiCDC node , stay TiCDC Deploy the bin There is... In the catalog cdc Tools , Perform the create task
bin]# ./cdc cli changefeed create --pd="http://xx.xx.xx.xx:2379" --sink-uri="mysql://wang:[email protected]:3358"
[WARN] some tables are not eligible to replicate, []model.TableName{model.TableName{Schema:"user", Table:"hero", TableID:0, IsPartition:false}}
Could you agree to ignore those tables, and continue to replicate [Y/N]
y
Create changefeed successfully!
ID: 47b8cd74-9069-40b2-b316-12ddd9ab03e6
Info: {"sink-uri":"mysql://wang:[email protected]:3358","opts":{"_changefeed_id":"sink-verify"},"create-time":"2022-02-25T18:08:34.997446645+08:00","start-ts":431432325685575681,"target-ts":0,"admin-job-type":0,"sort-engine":"unified","sort-dir":"","config":{"case-sensitive":true,"enable-old-value":true,"force-replicate":false,"check-gc-safe-point":true,"filter":{"rules":["*.*"],"ignore-txn-start-ts":null},"mounter":{"worker-num":16},"sink":{"dispatchers":null,"protocol":"default"},"cyclic-replication":{"enable":false,"replica-id":0,"filter-replica-ids":null,"id-buckets":0,"sync-ddl":false},"scheduler":{"type":"table-number","polling-time":-1},"consistent":{"level":"none","max-log-size":64,"flush-interval":1000,"storage":""}},"state":"normal","history":null,"error":null,"sync-point-enabled":false,"sync-point-interval":600000000000,"creator-version":"v5.3.0"}View task status
bin]# ./cdc cli changefeed list --pd="http://XX.XX.XX.XX:2379"
[
{
"id": "18d668a0-b6fa-480b-8a79-88d64cc32aa9",
"summary": {
"state": "normal",
"tso": 431432255286804481,
"checkpoint": "2022-02-25 18:04:04.545",
"error": null
}
}notes : TiCDC Only incremental synchronization , That is, the designated TSO Synchronization in time ; It is impossible to complete the historical data in the scale ;
边栏推荐
- Soup side (8)
- RT thread simulator lvgl control: switch switch button control
- 在 localStorage 中上传和检索存储图像
- Jinglianwen technology provides voice data acquisition and labeling services
- 如何使用望友DFM软件进行冷板分析
- 105. constructing binary trees from preorder and inorder traversal sequences
- Introduction and use of dumping
- How to use Wangyou DFM software for cold plate analysis
- 汇编语言基础:寄存器和寻址方式
- 个人js学习笔记
猜你喜欢

Common method of props changing value V-model sync

通过函数seaborn.cubehelix_palette生成顺序调色板

Yolov5 analysis | parameters and performance indicators

Project analysis of Taishan crowdfunding mode: why is Taishan crowdfunding mode so popular?

RT thread simulator lvgl control: button button style

MySQL系列之分库分表学习笔记

Uploading and retrieving stored images in localstorage
![[cloud native | kubernetes] kubernetes configuration](/img/cb/20595d34a9e203b83dd086cc27037d.png)
[cloud native | kubernetes] kubernetes configuration

基于FPGA的ds18b20温度传感器使用

Why is the blind box e-commerce mode so popular?
随机推荐
15、 IO stream (I)
105. 从前序与中序遍历序列构造二叉树
Br backup test
如何使用望友DFM軟件進行冷板分析
Why does TCP establish three handshakes and four waves
ISIS的vsys(虚拟系统)
How to use Wangyou DFM software for cold plate analysis
在产业互联网的概念刚刚出现时,人们仅仅只是将其看成是一个获取B端流量的方法
不间断管理设计
汇编语言基础:寄存器和寻址方式
Common method of props changing value V-model sync
Nfv basic overview
What does my financial product mean in clearing?
Fe of mL: introduction to vintage curve /vintage analysis, calculation logic and detailed introduction to case application
YOLOv5解析 | 参数与性能指标
Select all select none JS code implementation
Byte (nine)
线程池中的 工作线程如何被回收
Normalizing y-axis in histograms in R ggplot to proportion
Xuanwu cloud technology passed the listing hearing: the performance fluctuated significantly, and chenyonghui and other three were the controlling shareholders