当前位置:网站首页>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 ;
边栏推荐
- [weak transient signal detection] matlab simulation of SVM detection method for weak transient signal under chaotic background
- 16、 IO stream (II)
- 微隔离(MSG)
- RT thread simulator lvgl control: button button style
- Monotone stack top31 of interview must brush algorithm top101
- 树莓派高级开发——“IO口驱动代码的编写“ 包含总线地址、物理_虚拟地址、BCM2835芯片手册知识
- 景联文科技提供语音数据采集标注服务
- SDN基本概述
- Tidb implementation plan -- I
- That is, after the negative impact of gcat advertising e-commerce, is there no stable advertising e-commerce platform?
猜你喜欢

The causes of font and style enlargement when the applet is horizontal have been solved

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

Do you want to carry out rapid steel mesh design and ensure the quality of steel mesh? Look here

TiDB Lightning

如何从头自己制作开发板?图文并茂,一步步操作给你看。

测试开发程序员,你还在迷茫吗?不能把自己定义为码农......

怎么写出一份令人惊叹的设计文档?

Uploading and retrieving stored images in localstorage

智能金融再升级,景联文科技提供数据采集标注服务

2022-06-12:在N*N的正方形棋盤中,有N*N個棋子,那麼每個格子正好可以擁有一個棋子。 但是現在有些棋子聚集到一個格子上了,比如: 2 0 3 0 1 0 3 0 0 如上的二維數組代錶,一
随机推荐
智能文娱稳步发展,景联文科技提供数据采集标注服务
RT thread simulator lvgl control: button button style
What is online blind box e-commerce? Can blind box e-commerce become a new bonus market for the Internet?
简单了解C语言基本语
ML:机器学习模型的稳定性分析简介、常见的解决方法之详细攻略
Detailed Mr Atlas of hip joint (Reprinted)
JS method of extracting numbers from strings
Br backup test
Is it safe to open an account online in Hangzhou?
2022-06-12:在N*N的正方形棋盤中,有N*N個棋子,那麼每個格子正好可以擁有一個棋子。 但是現在有些棋子聚集到一個格子上了,比如: 2 0 3 0 1 0 3 0 0 如上的二維數組代錶,一
【腾讯阿里最全面试题集锦】(四面:3轮技术+1轮HR)
JS case Xiaomi second kill countdown New Year Countdown
智能金融再升级,景联文科技提供数据采集标注服务
Jinglianwen Technology: current situation and solutions of data annotation industry
What does my financial product mean in clearing?
10 Honest Facts I Want To Share With All Junior Developers
【騰訊阿裏最全面試題集錦】(四面:3輪技術+1輪HR)
Monotone stack top31 of interview must brush algorithm top101
Brief introduction to basic usage of echart
Test development programmers, are you still confused? You can't define yourself as a yard farmer