From 7ad375643ca0b6aea5a8110bb4d29e9ae16c091d Mon Sep 17 00:00:00 2001 From: gongzhongqiang <764629910@qq.com> Date: Wed, 23 Mar 2022 00:23:39 +0800 Subject: [PATCH] [docs][tidb] Add tidb cdc connector document This closes #959. --- README.md | 1 + docs/content/about.md | 1 + docs/content/connectors/index.md | 1 + docs/content/connectors/tidb-cdc.md | 473 ++++++++++++++++++++++++++++ 4 files changed, 476 insertions(+) create mode 100644 docs/content/connectors/tidb-cdc.md diff --git a/README.md b/README.md index a22e5c504ba..d0a5c35794b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ This README is meant as a brief walkthrough on the core features with Flink CDC | [mongodb-cdc](docs/content/connectors/mongodb-cdc.md) |
Option | +Required | +Default | +Type | +Description | +
---|---|---|---|---|
connector | +required | +(none) | +String | +Specify what connector to use, here should be 'tidb-cdc' . |
+
database-name | +required | +(none) | +String | +Database name of the TiDB server to monitor. | +
table-name | +required | +(none) | +String | +Table name of the TiDB database to monitor. | +
scan.startup.mode | +optional | +initial | +String | +Optional startup mode for TiDB CDC consumer, valid enumerations are "initial" and "latest-offset". | +
pd-addresses | +required | +(none) | +String | +TiKV cluster's PD address. | +
tikv.grpc.timeout_in_ms | +optional | +(none) | +Long | +TiKV GRPC timeout in ms. | +
tikv.grpc.scan_timeout_in_ms | +optional | +(none) | +Long | +TiKV GRPC scan timeout in ms. | +
tikv.batch_get_concurrency | +optional | +20 | +Integer | +TiKV GRPC batch get concurrency. | +
tikv.* | +optional | +(none) | +String | +Pass-through TiDB client's properties. | +
Key | +DataType | +Description | +
---|---|---|
table_name | +STRING NOT NULL | +Name of the table that contain the row. | +
database_name | +STRING NOT NULL | +Name of the database that contain the row. | +
op_ts | +TIMESTAMP_LTZ(3) NOT NULL | +It indicates the time that the change was made in the database. If the record is read from snapshot of the table instead of the binlog, the value is always 0. |
+