-
Notifications
You must be signed in to change notification settings - Fork 191
[hotfix][build & docs] Update version to 4.1-SNAPSHOT and update docs #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,27 @@ The JDBC sink operate in upsert mode for exchange UPDATE/DELETE messages with th | |
Dependencies | ||
------------ | ||
|
||
When using the JDBC connector, `flink-connector-jdbc-core`, `flink-connector-jdbc-${database}` and the JDBC driver needs to be added to the dependencies. | ||
|
||
{{< sql_connector_download_table "jdbc" >}} | ||
|
||
The JDBC connector is not part of the binary distribution. | ||
See how to link with it for cluster execution [here]({{< ref "docs/dev/configuration/overview" >}}). | ||
The `flink-connector-jdbc-${database}` dependency and a driver dependency are required to connect to a specified database. | ||
|
||
The `flink-connector-jdbc-${database}` dependencies are as follows, whose version should be the same as the `flink-connector-jdbc-core`: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: when we say |
||
|
||
| Database | Group Id | Artifact Id | JAR | | ||
|:-----------|:--------------------------|:---------------------------------|:--------------------------------------------------------------------------------------------------| | ||
| MySQL | `org.apache.flink` | `flink-connector-jdbc-mysql` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-mysql/) | | ||
| Oracle | `org.apache.flink` | `flink-connector-jdbc-oracle` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-oracle/) | | ||
| PostgreSQL | `org.apache.flink` | `flink-connector-jdbc-postgres` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-postgres/) | | ||
| Derby | `org.apache.flink` | `flink-connector-jdbc-core` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-core/) | | ||
| SQL Server | `org.apache.flink` | `flink-connector-jdbc-sqlserver` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-sqlserver/) | | ||
| CrateDB | `org.apache.flink` | `flink-connector-jdbc-cratedb` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-cratedb/) | | ||
| Db2 | `org.apache.flink` | `flink-connector-jdbc-db2` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-db2/) | | ||
| Trino | `org.apache.flink` | `flink-connector-jdbc-trino` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-trino/) | | ||
| OceanBase | `org.apache.flink` | `flink-connector-jdbc-oceanbase` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc-oceanbase/) | | ||
|
||
A driver dependency is also required to connect to a specified database. Here are drivers currently supported: | ||
Here are drivers currently supported: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Here are drivers -> Here are the drivers |
||
|
||
| Driver | Group Id | Artifact Id | JAR | | ||
|:-----------|:---------------------------|:-----------------------|:----------------------------------------------------------------------------------------------------------------------------------| | ||
|
@@ -58,7 +73,8 @@ A driver dependency is also required to connect to a specified database. Here ar | |
| OceanBase | `com.oceanbase` | `oceanbase-client` | [Download](https://repo1.maven.org/maven2/com/oceanbase/oceanbase-client/) | | ||
|
||
|
||
JDBC connector and drivers are not part of Flink's binary distribution. See how to link with them for cluster execution [here]({{< ref "docs/dev/configuration/overview" >}}). | ||
JDBC connector and drivers are not part of Flink's binary distribution. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: JDBC connector -> The JDBC connector |
||
See how to link with them for cluster execution [here]({{< ref "docs/dev/configuration/overview" >}}). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: what do we mean by |
||
|
||
|
||
How to create a JDBC table | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<parent> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-connector-jdbc-parent</artifactId> | ||
<version>4.0-SNAPSHOT</version> | ||
<version>4.1-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ams curious should this be 4.0.1 ? |
||
</parent> | ||
|
||
<artifactId>flink-connector-jdbc-architecture</artifactId> | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: needs -> need
nit2:
Is this accurate?
If I want to connect to Derby I need the
flink-connector-jdbc-core
and the Derby driver.If I want to connect to DB2 I need the Derby artifact
flink-connector-jdbc-core
and the DB2 driver. I assume I do not need the Derby driver.It might be clearer to say something like. The
flink-connector-jdbc-core
contains core JDBC capability, it also has built in support for Derby. To use another database , you need to supply it'sflink-connector-jdbc-${database}
from the same Flink JDBC connector release and the associated JDBC driver.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the postgres connector and it does not need the jdbc-core .3.30-1.20 from what I see. The jdbc-core and connector-base are transitive depebdencies, at least for lookup joins. I am also willing to fix the comments here if you are busy @ruanhang1993