当前位置:网站首页>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 ;
边栏推荐
- Normalizing y-axis in histograms in R ggplot to proportion
- Computer network interview questions
- Gold jewelry enterprise operation mode, beautiful tiantians business solution
- 【騰訊阿裏最全面試題集錦】(四面:3輪技術+1輪HR)
- Byte (nine)
- Test development programmers, are you still confused? You can't define yourself as a yard farmer
- Soup side (8)
- [Collection des questions d'examen les plus complètes de Tencent Ali] (quatre côtés: 3 tours de technologie + 1 tour de RH)
- Tidb dashboard modify port
- First day of learning MySQL Basics
猜你喜欢
![[Markov chain Monte Carlo] Markov chain Monte Carlo method sampling prior distribution](/img/8a/e6423168e110a168bc3cc6407628f6.png)
[Markov chain Monte Carlo] Markov chain Monte Carlo method sampling prior distribution

如何使用望友DFM軟件進行冷板分析

What is online blind box e-commerce? Can blind box e-commerce become a new bonus market for the Internet?

RT-Thread 模拟器 simulator LVGL控件:button 按钮事件

FSM状态机

Gold jewelry enterprise operation mode, beautiful tiantians business solution

【云原生 | Kubernetes篇】Kubernetes 配置

Byte (nine)

AIO Introduction (VIII)

16、 IO stream (II)
随机推荐
Jinglianwen Technology: current situation and solutions of data acquisition and labeling industry
Raspberry school advanced development - "writing of IO port driver code" includes bus address, physical \u virtual address and bcm2835 chip manual knowledge
面试必刷算法TOP101之单调栈 TOP31
Upper computer development (software test of firmware download software)
Brief introduction to basic usage of echart
Normalizing y-axis in histograms in R ggplot to proportion
通过函数seaborn.cubehelix_palette生成顺序调色板
Detailed Mr Atlas of hip joint (Reprinted)
Nfv basic overview
When the concept of industrial Internet just appeared, people only regarded it as a method to obtain b-end traffic
Tidb grafana reverse proxy
ML:机器学习模型的稳定性分析简介、常见的解决方法之详细攻略
微隔离(MSG)
检测循环数“142857“
JS method of extracting numbers from strings
Why is the new e-commerce outlet mode so popular? What is the specific mode?
June 12, 2022: if there are n*n pieces in an n*n square chessboard, each grid can have exactly one piece. But now some pieces are gathered on a grid, such as 2030100300. The above two-dimensional arra
Tidb server tuning
[weak transient signal detection] matlab simulation of SVM detection method for weak transient signal under chaotic background
New Taishan crowdfunding business diversion fission growth model in 2022