From aae7dc2075eb2faa819f1c100e8612c7c71097c4 Mon Sep 17 00:00:00 2001 From: skylines <34996528+rookiegao@users.noreply.github.com> Date: Wed, 29 Dec 2021 23:33:03 +0800 Subject: [PATCH] [docs] Translate the Chinese FAQ document to English (#737) --- docs/content/connectors/mongodb-cdc.md | 5 ++++ docs/content/connectors/mysql-cdc.md | 32 ++----------------------- docs/content/connectors/oracle-cdc.md | 5 ++++ docs/content/connectors/postgres-cdc.md | 7 ++---- 4 files changed, 14 insertions(+), 35 deletions(-) diff --git a/docs/content/connectors/mongodb-cdc.md b/docs/content/connectors/mongodb-cdc.md index e8f1a2a55..aa605ff88 100644 --- a/docs/content/connectors/mongodb-cdc.md +++ b/docs/content/connectors/mongodb-cdc.md @@ -506,3 +506,8 @@ Reference - [Connection String Options](https://docs.mongodb.com/manual/reference/connection-string/#std-label-connections-connection-options) - [BSON Types](https://docs.mongodb.com/manual/reference/bson-types/) - [Flink DataTypes](https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/dev/table/types/) + +FAQ +-------- +* [FAQ(English)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ) +* [FAQ(中文)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH)) \ No newline at end of file diff --git a/docs/content/connectors/mysql-cdc.md b/docs/content/connectors/mysql-cdc.md index 38591970e..cf04e605d 100644 --- a/docs/content/connectors/mysql-cdc.md +++ b/docs/content/connectors/mysql-cdc.md @@ -751,35 +751,7 @@ The example for different spatial data types mapping is as follows: - - FAQ -------- - -#### Q1: How to skip snapshot and only read from binlog? - -Please see [Startup Reading Position](#startup-reading-position) section. - -#### Q2: How to read a shared database that contains multiple tables, e.g. user_00, user_01, ..., user_99 ? - -The `table-name` option supports regular expressions to monitor multiple tables matches the regular expression. So you can set `table-name` to `user_.*` to monitor all the `user_` prefix tables. The same to the `database-name` option. Note that the shared table should be in the same schema. - -#### Q3: ConnectException: Received DML '...' for processing, binlog probably contains events generated with statement or mixed based replication format - -If there is above exception, please check `binlog_format` is `ROW`, you can check this by running `show variables like '%binlog_format%'` in MySQL client. Please note that even if the `binlog_format` configuration of your database is `ROW`, this configuration can be changed by other sessions, for example, `SET SESSION binlog_format='MIXED'; SET SESSION tx_isolation='REPEATABLE-READ'; COMMIT;`. Please also make sure there are no other session are changing this configuration. - -#### Q4: Mysql8.0 Public Key Retrieval is not allowed ? - -This is because the MySQL user account uses `sha256_password` authentication which requires transporting password under protection like TLS protocol. A simple way is to enable the MySQL user account use naive password. -```sql --- MySQL -ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; -FLUSH PRIVILEGES; -``` -#### Q5: How to config `tableList` option when build MySQL CDC source in DataStream API? - -The `tableList` option requires table name with database name rather than table name in DataStream API. For MySQL CDC source, the `tableList` option value should like 'my_db.my_table'. - -#### Q6: How to config MySQL server timezone in DataStream API? - -The timezone of MySQL server influences the data value of TIMESTAMP column in its binlog file, thus we need to consider the MySQL server timezone when deal record that contains TIMESTAMP column. You can refer `com.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema` as an example when you define your custom deserializer to deal binlog data correctly. \ No newline at end of file +* [FAQ(English)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ) +* [FAQ(中文)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH)) \ No newline at end of file diff --git a/docs/content/connectors/oracle-cdc.md b/docs/content/connectors/oracle-cdc.md index 45462d9eb..af946ef03 100644 --- a/docs/content/connectors/oracle-cdc.md +++ b/docs/content/connectors/oracle-cdc.md @@ -472,3 +472,8 @@ Data Type Mapping + +FAQ +-------- +* [FAQ(English)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ) +* [FAQ(中文)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH)) \ No newline at end of file diff --git a/docs/content/connectors/postgres-cdc.md b/docs/content/connectors/postgres-cdc.md index 72644e8dd..54e8d2612 100644 --- a/docs/content/connectors/postgres-cdc.md +++ b/docs/content/connectors/postgres-cdc.md @@ -369,10 +369,7 @@ Data Type Mapping - FAQ -------- - -#### Q1: How to config `tableList` option when build Postgres CDC source in DataStream API? - -The `tableList` option requires table name with schema name rather than table name in DataStream API. For Postgres CDC source, the `tableList` option value should like 'my_schema.my_table'. \ No newline at end of file +* [FAQ(English)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ) +* [FAQ(中文)](https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH)) \ No newline at end of file