Source plugin : Jdbc [Flink]
Read data through jdbc
name | type | required | default value |
---|---|---|---|
driver | string | yes | - |
url | string | yes | - |
username | string | yes | - |
password | string | no | - |
query | string | yes | - |
fetch_size | int | no | - |
partition_column | string | no | - |
partition_upper_bound | long | no | - |
partition_lower_bound | long | no | - |
common-options | string | no | - |
parallelism | int | no | - |
Driver name, such as com.mysql.cj.jdbc.Driver
for MySQL.
Warn: for license compliance, you have to provide MySQL JDBC driver yourself, e.g. copy mysql-connector-java-xxx.jar
to $FLINK_HOME/lib
for Standalone.
The URL of the JDBC connection. Such as: jdbc:mysql://localhost:3306/test
username
password
Query statement
fetch size
The parallelism of an individual operator, for JdbcSource.
The column name for parallelism's partition, only support numeric type.
The partition_column max value for scan, if not set SeaTunnel will query database get max value.
The partition_column min value for scan, if not set SeaTunnel will query database get min value.
Source plugin common parameters, please refer to Source Plugin for details
JdbcSource {
driver = com.mysql.jdbc.Driver
url = "jdbc:mysql://localhost/test"
username = root
query = "select * from test"
}