–CDC 版本
[tidb@ptidbcalcmanage01 ~]$ tiup cdc version
tiup is checking updates for component cdc …
A new version of cdc is available:
The latest version: v6.1.0
Local installed version: v6.0.0
Update current component: tiup update cdc
Update all components: tiup update --all
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.0.0/cdc version
Release Version: v6.0.0
Git Commit Hash: 2f363f653a49fc557ebaab1afa7a47f900fbfc8f
Git Branch: heads/refs/tags/v6.0.0
UTC Build Time: 2022-03-31 10:05:34
Go Version: go version go1.18 linux/amd64
Failpoint Build: false
–TiDB 版本
tiup cluster list;
tiup is checking updates for component cluster …
Starting component cluster
: /home/tidb/.tiup/components/cluster/v1.10.2/tiup-cluster list
Name User Version Path PrivateKey
calctidb-cluster tidb v6.0.0 /home/tidb/.tiup/storage/cluster/clusters/calctidb-cluster /home/tidb/.tiup/storage/cluster/clusters/calctidb-cluster/ssh/id_rsa
–创建任务还是报同样的错误。
[tidb@ptidbcalcmanage01 cdc-conf]$ tiup cdc cli changefeed create --pd=http://xxx.xx.3.113:2379 --sink-uri=“kafka://xxx.xx.8.24:15502,xxx.xx.8.25:15502,xxx.xx.8.26:15502/t_pay_detail?kafka-version=3.1.0&max-message-bytes=10485760&replication-factor=3” --changefeed-id=“t-pay-detail” --config /home/tidb/cdc-conf/t_pay_detail.toml
tiup is checking updates for component cdc …
A new version of cdc is available:
The latest version: v6.1.0
Local installed version: v6.0.0
Update current component: tiup update cdc
Update all components: tiup update --all
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.0.0/cdc cli changefeed create --pd=http://xxx.xx.3.113:2379 --sink-uri=kafka://xxx.xx.8.24:15502,xxx.xx.8.25:15502,xxx.xx.8.26:15502/t_pay_detail?kafka-version=3.1.0&max-message-bytes=10485760&replication-factor=3 --changefeed-id=t-pay-detail --config /home/tidb/cdc-conf/t_pay_detail.toml
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
Usage:
cdc cli changefeed create [flags]
Flags:
-c, --changefeed-id string Replication task (changefeed) ID
–config string Path of the configuration file
–cyclic-filter-replica-ids uints (Experimental) Cyclic replication filter replica ID of changefeed (default [])
–cyclic-replica-id uint (Experimental) Cyclic replication replica ID of changefeed
–cyclic-sync-ddl (Experimental) Cyclic replication sync DDL of changefeed (default true)
–disable-gc-check Disable GC safe point check
-h, --help help for create
–no-confirm Don’t ask user whether to ignore ineligible table
–opts key=value Extra options, in the key=value format
–sink-uri string sink uri
–sort-engine string sort engine used for data sort (default “unified”)
–start-ts uint Start ts of changefeed
–sync-interval duration (Experimental) Set the interval for syncpoint in replication(default 10min) (default 10m0s)
–sync-point (Experimental) Set and Record syncpoint in replication(default off)
–target-ts uint Target ts of changefeed
–tz string timezone used when checking sink uri (changefeed timezone is determined by cdc server) (default “SYSTEM”)
Global Flags:
–ca string CA certificate path for TLS connection
–cert string Certificate path for TLS connection
-i, --interact Run cdc cli with readline
–key string Private key path for TLS connection
–log-level string log level (etc: debug|info|warn|error) (default “warn”)
–pd string PD address, use ‘,’ to separate multiple PDs (default “http://127.0.0.1:2379”)
[CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
未添加–pd参数报错
[tidb@ptidbcalcmanage01 ~]$ tiup cdc cli unsafe reset
tiup is checking updates for component cdc …
A new version of cdc is available:
The latest version: v6.1.0
Local installed version: v6.0.0
Update current component: tiup update cdc
Update all components: tiup update --all
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.0.0/cdc cli unsafe reset
Confirm that you know what this command will do and use it at your own risk [Y/N]
Y
Error: fail to open PD client, please check pd address “http://127.0.0.1:2379”: context deadline exceeded
Usage:
cdc cli unsafe reset [flags]
Flags:
-h, --help help for reset
Global Flags:
–ca string CA certificate path for TLS connection
–cert string Certificate path for TLS connection
-i, --interact Run cdc cli with readline
–key string Private key path for TLS connection
–log-level string log level (etc: debug|info|warn|error) (default “warn”)
–no-confirm Don’t ask user whether to confirm executing meta command
–pd string PD address, use ‘,’ to separate multiple PDs (default “http://127.0.0.1:2379”)
fail to open PD client, please check pd address “http://127.0.0.1:2379”: context deadline exceeded
添加–pd参数报错:CDC:ErrVersionIncompatible
[tidb@ptidbcalcmanage01 ~]$ tiup cdc cli unsafe reset --pd=http://xxx.xx.3.115:2379
tiup is checking updates for component cdc …
A new version of cdc is available:
The latest version: v6.1.0
Local installed version: v6.0.0
Update current component: tiup update cdc
Update all components: tiup update --all
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.0.0/cdc cli unsafe reset --pd=http://xxx.xx.3.115:2379
Confirm that you know what this command will do and use it at your own risk [Y/N]
Y
Error: [CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha
Usage:
cdc cli unsafe reset [flags]
Flags:
-h, --help help for reset
Global Flags:
–ca string CA certificate path for TLS connection
–cert string Certificate path for TLS connection
-i, --interact Run cdc cli with readline
–key string Private key path for TLS connection
–log-level string log level (etc: debug|info|warn|error) (default “warn”)
–no-confirm Don’t ask user whether to confirm executing meta command
–pd string PD address, use ‘,’ to separate multiple PDs (default “http://127.0.0.1:2379”)
[CDC:ErrVersionIncompatible]version is incompatible: TiKV 5.0.0 is not supported, the minimal compatible version is 5.1.0-alpha