我书写问题,创建任务的时候写的是 --sink-uri="tidb://root:admin@yy.yy.yy.yy:4000/”,命令没有写错。
另外任务状态查看如下:
[tidb@TIDBjsjdsjkxt01 ~]$ cdc cli changefeed query --pd=http://xx.xx.xx.xx:2379 --changefeed-id=zjp-task4
{
“info”: {
“sink-uri”: “tidb://root:admin@yy.yy.yy.yy:4000/”,
“opts”: {},
“create-time”: “2022-03-02T13:34:01.875318808+08:00”,
“start-ts”: 431541254049497089,
“target-ts”: 0,
“admin-job-type”: 0,
“sort-engine”: “unified”,
“sort-dir”: “.”,
“config”: {
“case-sensitive”: true,
“enable-old-value”: false,
“filter”: {
“rules”: [
“.”
],
“ignore-txn-start-ts”: null,
“ddl-allow-list”: 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
}
},
“state”: “normal”,
“history”: null,
“error”: null
},
“status”: {
“resolved-ts”: 0,
“checkpoint-ts”: 431541254049497089,
“admin-job-type”: 0
},
“count”: 0,
“task-status”: [
{
“capture-id”: “572d0610-eeaa-47fa-bb86-6493ee314305”,
“status”: {
“tables”: {
“258”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“282”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“288”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“334”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
}
},
“operation”: {
“258”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“282”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“288”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“334”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
}
},
“admin-job-type”: 0
}
},
{
“capture-id”: “aa3988f2-b9cf-4243-9c13-6d32f7cb50f3”,
“status”: {
“tables”: {
“260”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“291”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“336”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“361”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
},
“369”: {
“start-ts”: 431541254049497089,
“mark-table-id”: 0
}
},
“operation”: {
“260”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“291”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“336”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“361”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
},
“369”: {
“delete”: false,
“boundary_ts”: 431541254049497089,
“done”: false
}
},
“admin-job-type”: 0
}
}
]
}
[tidb@TIDBjsjdsjkxt01 ~]$ cdc cli changefeed query -s --pd=http://xx.xx.xx.xx:2379 --changefeed-id=zjp-task4
{
“state”: “normal”,
“tso”: 431541254049497089,
“checkpoint”: “2022-03-02 13:34:01.827”,
“error”: null
}