From edb205483fb778991ca1bcd0f88606d42b45c9c2 Mon Sep 17 00:00:00 2001 From: yangjf2019 Date: Fri, 27 Dec 2024 14:11:27 +0800 Subject: [PATCH 1/2] [hotfix] [docs] Improving the mysql-cdc.md Usage Documentation --- docs/content/cdc-ingestion/mysql-cdc.md | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/content/cdc-ingestion/mysql-cdc.md b/docs/content/cdc-ingestion/mysql-cdc.md index 8a16418a1f2e..b7ba43476163 100644 --- a/docs/content/cdc-ingestion/mysql-cdc.md +++ b/docs/content/cdc-ingestion/mysql-cdc.md @@ -39,6 +39,39 @@ Download `CDC Bundled Jar` and put them under /lib/. | 3.0.x |
Only supported in versions below 0.8.2
  • flink-sql-connector-mysql-cdc-3.0.x.jar
  • flink-cdc-common-3.0.x.jar | | 3.1.x |
  • flink-sql-connector-mysql-cdc-3.1.x.jar
  • mysql-connector-java-8.0.27.jar | +{{< hint danger >}} +If you are using versions below 3.0.1 (including 3.0.1), download the dependencies for [`com.ververica.flink-connector-mysql-cdc`](https://repo.maven.apache.org/maven2/com/ververica/flink-connector-mysql-cdc/). +Here's an example of how it's used. + +```xml + + com.ververica + flink-cdc-common + 3.0.1 + + + + com.ververica + flink-connector-mysql-cdc + 3.0.1 + +``` + +If you are using version 3.1.1+, download the `org.apache.flink` [flink-connector-mysql-cdc](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-mysql-cdc/). +Examples are given below: + +```xml + + org.apache.flink + flink-connector-mysql-cdc + 3.1.1 + +``` + +For more detailed information on this matter,please see this [PR](https://github.com/apache/paimon/pull/3764). + +{{< /hint >}} + ## Synchronizing Tables By using [MySqlSyncTableAction](/docs/{{< param Branch >}}/api/java/org/apache/paimon/flink/action/cdc/mysql/MySqlSyncTableAction) in a Flink DataStream job or directly through `flink run`, users can synchronize one or multiple tables from MySQL into one Paimon table. From 5885699b9b6105b82dd240f6d7181b4878770ab7 Mon Sep 17 00:00:00 2001 From: yangjf2019 Date: Wed, 1 Jan 2025 17:37:30 +0800 Subject: [PATCH 2/2] Update the document. --- docs/content/cdc-ingestion/mysql-cdc.md | 33 ++----------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/docs/content/cdc-ingestion/mysql-cdc.md b/docs/content/cdc-ingestion/mysql-cdc.md index b7ba43476163..5567064fadcf 100644 --- a/docs/content/cdc-ingestion/mysql-cdc.md +++ b/docs/content/cdc-ingestion/mysql-cdc.md @@ -34,41 +34,12 @@ Download `CDC Bundled Jar` and put them under /lib/. | Version | Bundled Jar | |---------|-------------------------------------------------------------------------------------------------------------------------| -| 2.3.x |
    Only supported in versions below 0.8.2
  • flink-sql-connector-mysql-cdc-2.3.x.jar | -| 2.4.x |
    Only supported in versions below 0.8.2
  • flink-sql-connector-mysql-cdc-2.4.x.jar | -| 3.0.x |
    Only supported in versions below 0.8.2
  • flink-sql-connector-mysql-cdc-3.0.x.jar
  • flink-cdc-common-3.0.x.jar | | 3.1.x |
  • flink-sql-connector-mysql-cdc-3.1.x.jar
  • mysql-connector-java-8.0.27.jar | {{< hint danger >}} -If you are using versions below 3.0.1 (including 3.0.1), download the dependencies for [`com.ververica.flink-connector-mysql-cdc`](https://repo.maven.apache.org/maven2/com/ververica/flink-connector-mysql-cdc/). -Here's an example of how it's used. - -```xml - - com.ververica - flink-cdc-common - 3.0.1 - - - - com.ververica - flink-connector-mysql-cdc - 3.0.1 - -``` - -If you are using version 3.1.1+, download the `org.apache.flink` [flink-connector-mysql-cdc](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-mysql-cdc/). -Examples are given below: - -```xml - - org.apache.flink - flink-connector-mysql-cdc - 3.1.1 - -``` +Only cdc 3.1+ is supported. -For more detailed information on this matter,please see this [PR](https://github.com/apache/paimon/pull/3764). +You can download the `flink-connector-mysql-cdc` jar package by clicking [here](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-mysql-cdc/). {{< /hint >}}