This is an automated email from the ASF dual-hosted git repository.
nzw921rx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 3eefbe6f08 [Docs] Document missing shared file connector options
across en and zh docs (#13289)
3eefbe6f08 is described below
commit 3eefbe6f08a935030876aeda857ea639a882d9a6
Author: Jast <[email protected]>
AuthorDate: Thu Nov 26 01:18:07 2026 +0800
[Docs] Document missing shared file connector options across en and zh docs
(#13289)
Co-authored-by: jast <[email protected]>
Co-authored-by: zhiwei.niu <[email protected]>
---
docs/en/connectors/sink/BosFile.md | 10 ++++-
docs/en/connectors/sink/CosFile.md | 5 +++
docs/en/connectors/sink/FtpFile.md | 4 ++
docs/en/connectors/sink/GcsFile.md | 11 +++++
docs/en/connectors/sink/GraphQL.md | 11 ++---
docs/en/connectors/sink/ObsFile.md | 16 ++++++--
docs/en/connectors/sink/OssFile.md | 3 ++
docs/en/connectors/sink/OssJindoFile.md | 7 +++-
docs/en/connectors/sink/S3File.md | 3 ++
docs/en/connectors/sink/SmbFile.md | 10 +++--
docs/en/connectors/source/BosFile.md | 60 +++++++++++++++++++++++++++
docs/en/connectors/source/CosFile.md | 61 +++++++++++++++++++++++++++
docs/en/connectors/source/DB2-CDC.md | 1 -
docs/en/connectors/source/GcsFile.md | 3 --
docs/en/connectors/source/ObsFile.md | 19 +++++++++
docs/en/connectors/source/OssFile.md | 6 ++-
docs/en/connectors/source/OssJindoFile.md | 61 +++++++++++++++++++++++++++
docs/en/connectors/source/TiDB-CDC.md | 1 -
docs/en/transforms/embedding.md | 1 -
docs/zh/connectors/sink/BosFile.md | 20 +++++----
docs/zh/connectors/sink/CosFile.md | 5 +++
docs/zh/connectors/sink/FtpFile.md | 4 ++
docs/zh/connectors/sink/GcsFile.md | 11 +++++
docs/zh/connectors/sink/GraphQL.md | 11 ++---
docs/zh/connectors/sink/ObsFile.md | 16 ++++++--
docs/zh/connectors/sink/OssFile.md | 3 ++
docs/zh/connectors/sink/OssJindoFile.md | 7 +++-
docs/zh/connectors/sink/S3File.md | 3 ++
docs/zh/connectors/sink/SmbFile.md | 10 +++--
docs/zh/connectors/source/BosFile.md | 60 +++++++++++++++++++++++++++
docs/zh/connectors/source/CosFile.md | 61 +++++++++++++++++++++++++++
docs/zh/connectors/source/DB2-CDC.md | 1 -
docs/zh/connectors/source/GcsFile.md | 3 --
docs/zh/connectors/source/ObsFile.md | 61 +++++++++++++++++++++++++++
docs/zh/connectors/source/OssFile.md | 6 ++-
docs/zh/connectors/source/OssJindoFile.md | 68 +++++++++++++++++++++++++++++--
docs/zh/connectors/source/TiDB-CDC.md | 1 -
docs/zh/transforms/embedding.md | 1 -
38 files changed, 592 insertions(+), 53 deletions(-)
diff --git a/docs/en/connectors/sink/BosFile.md
b/docs/en/connectors/sink/BosFile.md
index 76070b0b97..7c1eee9a24 100644
--- a/docs/en/connectors/sink/BosFile.md
+++ b/docs/en/connectors/sink/BosFile.md
@@ -78,7 +78,7 @@ To use this connector you need to put `bos-hdfs-sdk` (>=
1.0.4-community) into `
| compress_codec | string | no | none
| The compress codec of files. Excel does not
support any compression format.
|
| xml_root_tag | string | no | RECORDS
| Only used when file_format is xml.
|
| xml_row_tag | string | no | RECORD
| Only used when file_format is xml.
|
-| xml_use_attr_format | boolean | no | -
| Only used when file_format is xml.
|
+| xml_use_attr_format | boolean | conditional | -
| Required when `file_format_type` is
`xml`.
|
| single_file_mode | boolean | no | false
| Each parallelism will only output one file. When
this parameter is turned on, batch_size will not take effect. The output file
name does not have a file block suffix. |
| create_empty_file_when_no_data | boolean | no | false
| When there is no data synchronization upstream,
the corresponding data files are still generated.
|
| parquet_avro_write_timestamp_as_int96 | boolean | no | false
| Only used when file_format is parquet.
|
@@ -88,8 +88,14 @@ To use this connector you need to put `bos-hdfs-sdk` (>=
1.0.4-community) into `
| sheet_max_rows | int | no | 1048576
| Only used when file_format_type is excel.
|
| sheet_name | string | no | Sheet0
| Only used when file_format_type is excel.
|
| csv_string_quote_mode | enum | no | MINIMAL
| Only used when file_format is csv.
|
-| enable_header_write | boolean | no | false
| Only used when file_format_type is text,csv.
`false`: don't write header, `true`: write header.
|
+| enable_header_write | boolean | no | false
| Only used when file_format_type is text, csv.
`false`: don't write header, `true`: write header.
|
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is `text`,
`csv`, `excel` or `xml`. Datetime type format, used to tell connector how to
write datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
+| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines.
When true, ADD/DROP/RENAME/MODIFY column events from the source are applied to
the sink without a job restart. Not supported for binary format. |
+| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Controls how the target directory
is treated before the synchronization task starts.
|
+| data_save_mode | string | no | APPEND_DATA
| Controls how existing data files in the target
directory are processed before the synchronization task starts.
|
| common-options | object | no | -
| Sink plugin common parameters, please refer to
[Sink Common Options](../common-options/sink-common-options.md) for details.
|
## Example
diff --git a/docs/en/connectors/sink/CosFile.md
b/docs/en/connectors/sink/CosFile.md
index 7b461be68a..e249e28ac3 100644
--- a/docs/en/connectors/sink/CosFile.md
+++ b/docs/en/connectors/sink/CosFile.md
@@ -92,6 +92,11 @@ To use this connector you need to put
`hadoop-cos-{hadoop.version}-{version}.jar
| encoding | string | no | "UTF-8"
| Only used when file_format_type is
json,text,csv,xml.
|
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines.
When true, ADD/DROP/RENAME/MODIFY column events from the source are applied to
the sink without a job restart. Not supported for binary format. |
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is `text`,
`csv`, `excel` or `xml`. Datetime type format, used to tell connector how to
write datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
+| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Controls how the target directory
is treated before the synchronization task starts.
|
+| data_save_mode | string | no | APPEND_DATA
| Controls how existing data files in the target
directory are processed before the synchronization task starts.
|
### path [string]
diff --git a/docs/en/connectors/sink/FtpFile.md
b/docs/en/connectors/sink/FtpFile.md
index e7f73a2a56..b566826ba1 100644
--- a/docs/en/connectors/sink/FtpFile.md
+++ b/docs/en/connectors/sink/FtpFile.md
@@ -85,6 +85,10 @@ By default, we use 2PC commit to ensure `exactly-once`
| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Existing dir processing method
|
| data_save_mode | string | no | APPEND_DATA
| Existing data processing method
|
| multi_table_sink_replica | int | no | 1
| The replica number of sink writers used for each
table in a multi-table sink job.
|
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is `text`,
`csv`, `excel` or `xml`. Datetime type format, used to tell connector how to
write datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
+| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
### host [string]
diff --git a/docs/en/connectors/sink/GcsFile.md
b/docs/en/connectors/sink/GcsFile.md
index 7b3675f622..57a7e6effd 100644
--- a/docs/en/connectors/sink/GcsFile.md
+++ b/docs/en/connectors/sink/GcsFile.md
@@ -92,6 +92,17 @@ The explicit `service_account_key_file` option takes
precedence over the corresp
| datetime_format | string | no | `yyyy-MM-dd HH:mm:ss` | Datetime type format
used when writing datetime values with `text`, `csv`, `excel`, or `xml` output.
|
| time_format | string | no | `HH:mm:ss` | Time type format used when writing
time values with `text`, `csv`, `excel`, or `xml` output. |
| multi_table_sink_replica | int | no | `1` | Number of writer replicas for
each table in multi-table sink mode. Must be at least 1. |
+| max_rows_in_memory | int | no | - | Only used when file_format_type is
excel. |
+| sheet_max_rows | int | no | 1048576 | Only used when file_format_type is
excel. |
+| sheet_name | string | no | Sheet0 | Only used when file_format_type is
excel. |
+| csv_string_quote_mode | enum | no | MINIMAL | Only used when
`file_format_type` is csv. |
+| xml_root_tag | string | no | RECORDS | Applies when `file_format_type` is
`xml`. |
+| xml_row_tag | string | no | RECORD | Applies when `file_format_type` is
`xml`. |
+| xml_use_attr_format | boolean | conditional | - | Required when
`file_format_type` is `xml`. |
+| parquet_avro_write_timestamp_as_int96 | boolean | no | false | Only used
when `file_format_type` is parquet. |
+| parquet_avro_write_fixed_as_int96 | array | no | - | Only used when
`file_format_type` is parquet. |
+| merge_update_event | boolean | no | false | Only used when file_format_type
is canal_json,debezium_json or maxwell_json. When value is true, the
UPDATE_AFTER and UPDATE_BEFORE event will be merged into UPDATE event data |
+| schema_evolution_enabled | boolean | no | false | Enable schema evolution
support for CDC pipelines. When true, ADD/DROP/RENAME/MODIFY column events from
the source are applied to the sink without a job restart. Not supported for
binary format. |
| common-options | | no | - | See [Sink Common
Options](../common-options/sink-common-options.md). |
The sink also accepts the format-specific file sink options documented by the
corresponding
diff --git a/docs/en/connectors/sink/GraphQL.md
b/docs/en/connectors/sink/GraphQL.md
index 92c07ed033..d58ceaaa72 100644
--- a/docs/en/connectors/sink/GraphQL.md
+++ b/docs/en/connectors/sink/GraphQL.md
@@ -48,9 +48,9 @@ It can be downloaded via install-plugin.sh or from Maven
central repository.
| timeout | Long | No | - | Request timeout value passed
to the HTTP client parameter map. |
| headers | Map | No | - | HTTP request headers, such as
authentication headers. |
| params | Map | No | - | HTTP request parameters. |
-| retry | Int | No | - | Maximum retry times when an
HTTP request returns an IOException. |
-| retry_backoff_multiplier_ms | Int | No | 100 | HTTP retry backoff multiplier
in milliseconds. |
-| retry_backoff_max_ms | Int | No | 10000 | Maximum HTTP retry backoff in
milliseconds. |
+| retry | Int | No | - | Maximum request attempts for
the connector's I/O retry policy, including the initial attempt. |
+| retry_backoff_multiplier_ms | Int | No | 100 | Fibonacci backoff multiplier
in milliseconds. |
+| retry_backoff_max_ms | Int | No | 10000 | Maximum delay before each retry,
in milliseconds. |
| connect_timeout_ms | Int | No | 12000 | HTTP connection timeout in
milliseconds. |
| socket_timeout_ms | Int | No | 60000 | HTTP socket timeout in milliseconds. |
| multi_table_sink_replica | Int | No | 1 | Sink common option. It controls
sink replica count in multi-table runtime. The same GraphQL mutation is still
used for all rows routed to this sink. |
@@ -166,8 +166,9 @@ sink {
### Stream Mutations to a GraphQL Service
Run the same mutation continuously in streaming mode. The sink sends one
mutation
-per row and uses `retry` plus exponential backoff to absorb transient HTTP
-failures.
+per row. With retries enabled by `retry`, the connector retries `IOException`
failures
+during HTTP request execution using Fibonacci backoff. Each delay is capped by
+`retry_backoff_max_ms`.
```hocon
env {
diff --git a/docs/en/connectors/sink/ObsFile.md
b/docs/en/connectors/sink/ObsFile.md
index bbf8d37e41..29e239e383 100644
--- a/docs/en/connectors/sink/ObsFile.md
+++ b/docs/en/connectors/sink/ObsFile.md
@@ -87,9 +87,7 @@ It only supports hadoop version **2.9.X+**.
| create_empty_file_when_no_data | boolean | no | false
| When there is no data synchronization upstream, the
corresponding data files are still generated.
|
| compress_codec | string | no | none
| The compress codec of files. Excel does not support any
compression format. [Tips](#compress_codec)
|
| tmp_path | string | no | /tmp/seatunnel
| The result file will write to a tmp path first and then
use `mv` to submit tmp dir to target dir. Needs an OBS dir.
|
-| filename_extension | string | no | -
| Override the default file name extensions with custom
file name extensions. E.g. `.xml`, `.json`, `dat`, `.customtype`.
|
-| encoding | string | no | "UTF-8"
| Only used when file_format_type is json,text,csv.
|
-| csv_string_quote_mode | enum | no | MINIMAL
| Only used when file_format is csv.
|
+| csv_string_quote_mode | enum | no | MINIMAL
| Applies when `file_format_type` is `csv`. |
| enable_header_write | boolean | no | false
| Only used when file_format_type is text,csv. `false`:
don't write header, `true`: write header.
|
| common-options | object | no | -
| Sink plugin common parameters, please refer to [Sink
Common Options](../common-options/sink-common-options.md) for details.
[Tips](#common_options) |
| max_rows_in_memory | int | no | -
| When File Format is Excel, the maximum number of data
items that can be cached in the memory. Only used when file_format_type is
excel. |
@@ -97,6 +95,18 @@ It only supports hadoop version **2.9.X+**.
| sheet_max_rows | int | no | 1048576
| Only used when file_format_type is excel.
|
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines. When
true, ADD/DROP/RENAME/MODIFY column events from the source are applied to the
sink without a job restart. Not supported for binary format. |
+| encoding | string | no | "UTF-8"
| Only used when file_format_type is json,text,csv,xml.
|
+| filename_extension | string | no | -
| Output filename suffix. When set, it is appended to the
generated file name (a leading dot is added if missing), e.g. `csv`, `.txt`,
`json` or `.xml`; when unset, the format default suffix is used.
|
+| xml_root_tag | string | no | RECORDS
| Applies when `file_format_type` is `xml`.
|
+| xml_row_tag | string | no | RECORD
| Applies when `file_format_type` is `xml`.
|
+| xml_use_attr_format | boolean | conditional | -
| Required when `file_format_type` is `xml`.
|
+| parquet_avro_write_timestamp_as_int96 | boolean | no | false
| Only used when `file_format_type` is parquet.
|
+| parquet_avro_write_fixed_as_int96 | array | no | -
| Only used when `file_format_type` is parquet.
|
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Datetime type format, used to tell connector how to write
datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
+| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Controls how the target directory
is treated before the synchronization task starts.
|
+| data_save_mode | string | no | APPEND_DATA
| Controls how existing data files in the target
directory are processed before the synchronization task starts.
|
### Tips
diff --git a/docs/en/connectors/sink/OssFile.md
b/docs/en/connectors/sink/OssFile.md
index 1ba59eb66b..38287e7da8 100644
--- a/docs/en/connectors/sink/OssFile.md
+++ b/docs/en/connectors/sink/OssFile.md
@@ -136,6 +136,9 @@ If write to `csv`, `text`, `json` file type, All column
will be string.
| data_save_mode | Enum | no | APPEND_DATA
| Controls how existing data files in the target
directory are processed before the synchronization task starts.
|
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines.
When true, ADD/DROP/RENAME/MODIFY column events from the source are applied to
the sink without a job restart. Not supported for binary format. |
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is `text`,
`csv`, `excel` or `xml`. Datetime type format, used to tell connector how to
write datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
### path [string]
diff --git a/docs/en/connectors/sink/OssJindoFile.md
b/docs/en/connectors/sink/OssJindoFile.md
index c48c2c1d48..0779113c7d 100644
--- a/docs/en/connectors/sink/OssJindoFile.md
+++ b/docs/en/connectors/sink/OssJindoFile.md
@@ -92,7 +92,7 @@ The connector targets Alibaba OSS via the Jindo SDK. The
Jindo SDK jars (`jindo-
| csv_string_quote_mode | enum | no | MINIMAL
| Only used when file_format is csv.
|
| xml_root_tag | string | no | RECORDS
| Only used when file_format is xml.
|
| xml_row_tag | string | no | RECORD
| Only used when file_format is xml.
|
-| xml_use_attr_format | boolean | no | -
| Only used when file_format is xml.
|
+| xml_use_attr_format | boolean | conditional | -
| Required when `file_format_type` is
`xml`.
|
| single_file_mode | boolean | no | false
| Each parallelism will only output one file. When
this parameter is turned on, batch_size will not take effect. The output file
name does not have a file block suffix. |
| create_empty_file_when_no_data | boolean | no | false
| When there is no data synchronization upstream,
the corresponding data files are still generated.
|
| parquet_avro_write_timestamp_as_int96 | boolean | no | false
| Only used when file_format is parquet.
|
@@ -100,6 +100,11 @@ The connector targets Alibaba OSS via the Jindo SDK. The
Jindo SDK jars (`jindo-
| encoding | string | no | "UTF-8"
| Only used when file_format_type is
json,text,csv,xml.
|
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines.
When true, ADD/DROP/RENAME/MODIFY column events from the source are applied to
the sink without a job restart. Not supported for binary format. |
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Date type format, used to tell connector how to write date
values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`, `yyyy/MM/dd`.
|
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is `text`,
`csv`, `excel` or `xml`. Datetime type format, used to tell connector how to
write datetime values. Supported formats (examples): `yyyy-MM-dd HH:mm:ss`,
`yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is `text`, `csv`,
`excel` or `xml`. Time type format, used to tell connector how to write time
values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`. |
+| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Controls how the target directory
is treated before the synchronization task starts.
|
+| data_save_mode | string | no | APPEND_DATA
| Controls how existing data files in the target
directory are processed before the synchronization task starts.
|
### path [string]
diff --git a/docs/en/connectors/sink/S3File.md
b/docs/en/connectors/sink/S3File.md
index 0a1d1464dc..5c5e2ba502 100644
--- a/docs/en/connectors/sink/S3File.md
+++ b/docs/en/connectors/sink/S3File.md
@@ -148,6 +148,9 @@ If write to `csv`, `text` file type, All column will be
string.
| enable_header_write | boolean | no | false
| Only used when file_format_type is
text,csv.<br/> false:don't write header,true:write header.
|
| encoding | string | no | "UTF-8"
| Only used when file_format_type is
json,text,csv,xml.
|
| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
+| date_format | string | no | yyyy-MM-dd
| Only used when file_format_type is
`text`, `csv`, `excel` or `xml`. Date type format, used to tell connector how
to write date values. Supported formats (examples): `yyyy-MM-dd`, `yyyy.MM.dd`,
`yyyy/MM/dd`. |
+| datetime_format | string | no | yyyy-MM-dd
HH:mm:ss | Only used when file_format_type is
`text`, `csv`, `excel` or `xml`. Datetime type format, used to tell connector
how to write datetime values. Supported formats (examples): `yyyy-MM-dd
HH:mm:ss`, `yyyy.MM.dd HH:mm:ss`, `yyyy/MM/dd HH:mm:ss`, `yyyyMMddHHmmss`. |
+| time_format | string | no | HH:mm:ss
| Only used when file_format_type is
`text`, `csv`, `excel` or `xml`. Time type format, used to tell connector how
to write time values. Supported formats (examples): `HH:mm:ss`, `HH:mm:ss.SSS`.
|
### path [string]
diff --git a/docs/en/connectors/sink/SmbFile.md
b/docs/en/connectors/sink/SmbFile.md
index f39991c491..152fc7c368 100644
--- a/docs/en/connectors/sink/SmbFile.md
+++ b/docs/en/connectors/sink/SmbFile.md
@@ -73,7 +73,7 @@ If you use SeaTunnel Engine, It automatically integrated the
hadoop jar when you
| sheet_name | string | no | Sheet0
| Only used when file_format_type is excel.
|
| xml_root_tag | string | no | RECORDS
| Only used when file_format is xml.
|
| xml_row_tag | string | no | RECORD
| Only used when file_format is xml.
|
-| xml_use_attr_format | boolean | no | -
| Only used when file_format is xml.
|
+| xml_use_attr_format | boolean | conditional | -
| Required when `file_format_type` is
`xml`.
|
| single_file_mode | boolean | no | false
| Each parallelism will only output one file.
|
| encoding | string | no | UTF-8
| Only used when file_format_type is text, json,
csv, xml
|
| date_format | string | no | yyyy-MM-dd
| Date type format
|
@@ -83,8 +83,12 @@ If you use SeaTunnel Engine, It automatically integrated the
hadoop jar when you
| schema_save_mode | string | no |
CREATE_SCHEMA_WHEN_NOT_EXIST | Existing dir processing method
|
| data_save_mode | string | no | APPEND_DATA
| Existing data processing method
|
| enable_header_write | boolean | no | false
| Only used when file_format_type is text, csv.
false: don't write header, true: write header.
|
-| parquet_avro_write_timestamp_as_int96 | boolean | no | false
| Only used when file_format is parquet.
|
-| parquet_avro_write_fixed_as_int96 | array | no | -
| Only used when file_format is parquet.
|
+| parquet_avro_write_timestamp_as_int96 | boolean | no | false
| Applies when `file_format_type` is `parquet`.
|
+| parquet_avro_write_fixed_as_int96 | array | no | -
| Applies when `file_format_type` is `parquet`.
|
+| csv_string_quote_mode | enum | no | MINIMAL
| Only used when `file_format_type` is csv.
|
+| sheet_max_rows | int | no | 1048576
| Only used when file_format_type is excel.
|
+| merge_update_event | boolean | no | false
| Only used when file_format_type is
canal_json,debezium_json or maxwell_json. When value is true, the UPDATE_AFTER
and UPDATE_BEFORE event will be merged into UPDATE event data |
+| schema_evolution_enabled | boolean | no | false
| Enable schema evolution support for CDC pipelines.
When true, ADD/DROP/RENAME/MODIFY column events from the source are applied to
the sink without a job restart. Not supported for binary format. |
## Example
diff --git a/docs/en/connectors/source/BosFile.md
b/docs/en/connectors/source/BosFile.md
index b8ee92e600..c68b24712a 100644
--- a/docs/en/connectors/source/BosFile.md
+++ b/docs/en/connectors/source/BosFile.md
@@ -93,6 +93,24 @@ To use this connector you need to put `bos-hdfs-sdk` (>=
1.0.4-community) into `
| escape_char | string | no | -
|
| recursive_file_scan | boolean | no | true
|
| sort_files_by_modification_time | boolean | no | false
|
+| enable_file_split | boolean | no | false
|
+| file_split_size | long | no | 134217728
|
+| markdown_rag_metadata_enabled | boolean | no | false
|
+| pdf_rag_metadata_enabled | boolean | no | false
|
+| discovery_mode | string | no | once
|
+| scan_interval | string | no | 10S
|
+| start_mode | string | no | earliest
|
+| sync_mode | string | no | full
|
+| target_path | string | no | -
|
+| target_hadoop_conf | map | no | -
|
+| update_strategy | string | no | distcp
|
+| compare_mode | string | no | len_mtime
|
+| update_compare_parallelism | int | no | 8
|
+| update_compare_bulk_threshold | int | no | 0
|
+| post_sync_action | string | no | none
|
+| backup_path | string | no | -
|
+| retention_max_age | string | no | -
|
+| retention_check_interval | string | no | 1H
|
### path [string]
@@ -122,6 +140,48 @@ Supported file types: `text`, `csv`, `parquet`, `orc`,
`json`, `excel`, `xml`, `
Source plugin common parameters, please refer to [Source Common
Options](../common-options/source-common-options.md) for details.
+## Continuous Discovery
+
+`discovery_mode=continuous` keeps a streaming job running and polls BOS for
new or changed objects. This mode uses the existing file comparison path; it
does not consume BOS event notifications and does not emit object delete events
or changelog rows.
+
+Continuous discovery currently requires `file_format_type="binary"` and
`sync_mode="update"`. Set `target_path` to the same base path used by the sink
so the source can skip unchanged objects. The default `discovery_mode="once"`
preserves the existing bounded-source behavior.
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ BosFile {
+ bucket = "bos://source-bucket"
+ path = "/watch/source"
+ access_key = "your-access-key"
+ secret_key = "your-secret-key"
+ endpoint = "http://bj.bcebos.com"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ BosFile {
+ bucket = "bos://source-bucket"
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ access_key = "your-access-key"
+ secret_key = "your-secret-key"
+ endpoint = "http://bj.bcebos.com"
+ file_format_type = "binary"
+ }
+}
+```
+
## Example
```hocon
diff --git a/docs/en/connectors/source/CosFile.md
b/docs/en/connectors/source/CosFile.md
index 53ee3a20db..95ca8895af 100644
--- a/docs/en/connectors/source/CosFile.md
+++ b/docs/en/connectors/source/CosFile.md
@@ -92,6 +92,25 @@ To use this connector you need put
hadoop-cos-{hadoop.version}-{version}.jar and
| escape_char | string | no | -
| Single character for escaping quotes or special characters inside CSV
fields. |
| recursive_file_scan | boolean | no | true
| Whether to scan subdirectories recursively, default true. |
| sort_files_by_modification_time | boolean | no | false
| Whether to sort files by modification time in descending order. When
enabled, schema inference uses the latest file when reading evolving schemas. |
+| enable_file_split | boolean | no | false
| Turn on the file splitting function. When `file_format_type` does not
support splitting or compression is enabled, the connector falls back to
non-splitting mode. |
+| file_split_size | long | no | 134217728
| File split size in bytes when `enable_file_split=true`. Must be greater than
0. For text-like formats, split ends are aligned to the next `row_delimiter`.
Default is 128 MB. |
+| excel_use_header_line | boolean | no | false
| Use the first Excel row as column headers for name-based mapping. Only used
when `file_format_type` is `excel`. |
+| markdown_rag_metadata_enabled | boolean | no | false
| Append RAG-oriented metadata columns when reading markdown files. Only
valid when `file_format_type` is `markdown`. |
+| pdf_rag_metadata_enabled | boolean | no | false
| Append RAG-oriented metadata columns when reading PDF files. Only valid when
`file_format_type` is `pdf`. |
+| discovery_mode | string | no | once
| File discovery mode. Supported values: `once` (default), `continuous`.
Continuous mode periodically scans the path and currently requires
`sync_mode=update` and `file_format_type=binary`. |
+| scan_interval | string | no | 10S
| Polling interval used when `discovery_mode=continuous`. Shorthand values
such as `10S` and ISO-8601 values such as `PT10S` are supported. |
+| start_mode | string | no | earliest
| Initial scan behavior for continuous discovery. `earliest` processes
existing files; `latest` processes only later additions or changes. |
+| sync_mode | string | no | full
| File sync mode. `update` compares source objects with `target_path` and
reads only new or changed objects. Update mode currently supports binary format
only. |
+| target_path | string | no | -
| Required when `sync_mode=update`. Target base path used for comparison and
normally the same as the sink `path`. |
+| target_hadoop_conf | map | no | -
| Optional Hadoop configuration for the target filesystem when
`sync_mode=update`. |
+| update_strategy | string | no | distcp
| Comparison strategy used by update mode. Supported values are `distcp` and
`strict`. |
+| compare_mode | string | no | len_mtime
| Comparison mode used by update mode. Supported values are `len_mtime` and
`checksum`; checksum requires `update_strategy=strict`. |
+| update_compare_parallelism | int | no | 8
| Maximum parallelism for target metadata lookups. Valid range is `1-64`. |
+| update_compare_bulk_threshold | int | no | 0
| Positive values switch comparison to a directory listing when that many
candidates share a target parent. `0` disables automatic bulk listing. |
+| post_sync_action | string | no | none
| Optional action after a continuously discovered object is checkpointed.
Supported values are `none`, `delete`, and `backup`. |
+| backup_path | string | no | -
| Required when `post_sync_action=backup`. Backup destination must not overlap
with the source `path`. |
+| retention_max_age | string | no | -
| Optional maximum age for SeaTunnel backup objects under `backup_path`. |
+| retention_check_interval | string | no | 1H
| Retention scan interval when backup retention is configured. |
### path [string]
@@ -509,6 +528,48 @@ When enabled, files will be sorted by their modification
time (newest first). Th
Source plugin common parameters, please refer to [Source Common
Options](../common-options/source-common-options.md) for details.
+## Continuous Discovery
+
+`discovery_mode=continuous` keeps a streaming job running and polls COS for
new or changed objects. This mode uses the existing file comparison path; it
does not consume COS event notifications and does not emit object delete events
or changelog rows.
+
+Continuous discovery currently requires `file_format_type="binary"` and
`sync_mode="update"`. Set `target_path` to the same base path used by the sink
so the source can skip unchanged objects. The default `discovery_mode="once"`
preserves the existing bounded-source behavior.
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ CosFile {
+ path = "/watch/source"
+ bucket = "cosn://seatunnel-test"
+ region = "ap-guangzhou"
+ secret_id = "xxxxxxxxxxxxxxxxx"
+ secret_key = "xxxxxxxxxxxxxxxxx"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ CosFile {
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ bucket = "cosn://seatunnel-test"
+ region = "ap-guangzhou"
+ secret_id = "xxxxxxxxxxxxxxxxx"
+ secret_key = "xxxxxxxxxxxxxxxxx"
+ file_format_type = "binary"
+ }
+}
+```
+
## Example
```hocon
diff --git a/docs/en/connectors/source/DB2-CDC.md
b/docs/en/connectors/source/DB2-CDC.md
index 09653e8241..dd68a21351 100644
--- a/docs/en/connectors/source/DB2-CDC.md
+++ b/docs/en/connectors/source/DB2-CDC.md
@@ -81,7 +81,6 @@ UPDATE and DELETE changes after the initial snapshot is
finished.
| snapshot.fetch.size | Integer | No | 1024 | The maximum fetch size for each
poll when reading table snapshot. |
| enable_concurrent_read | Boolean | No | true | Whether to enable concurrent
read with split during the snapshot phase. When set to false, the source reads
the table as a single split without any split analysis, which is useful for
tables without indexes. |
| server-time-zone | String | No | JVM system time zone | The session time
zone in database server. |
-| split.allow-sampling | Boolean | No | true | Whether to allow sampling-based
sharding strategy. When set to false, the system falls back to unevenly-sized
chunk splitting (iterative query approach) regardless of the shard count. |
| connect.timeout.ms | Long | No | 30000 | The maximum time that the connector
should wait after trying to connect to the database server before timing out. |
| connect.max-retries | Integer | No | 3 | The maximum retry times to build
database server connection. |
| connection.pool.size | Integer | No | 20 | The connection pool size. |
diff --git a/docs/en/connectors/source/GcsFile.md
b/docs/en/connectors/source/GcsFile.md
index 19c67a35fc..0239843628 100644
--- a/docs/en/connectors/source/GcsFile.md
+++ b/docs/en/connectors/source/GcsFile.md
@@ -85,9 +85,6 @@ The explicit `service_account_key_file` option takes
precedence over the corresp
| binary_complete_file_mode | boolean | no | false | Only used when
file_format_type is binary. Whether to read the complete file as a single chunk
instead of splitting into chunks. |
| quote_char | string | no | `"` | CSV quote character. |
| escape_char | string | no | - | CSV escape character. |
-| date_format | string | no | yyyy-MM-dd | Format used to parse `Date`
columns. |
-| datetime_format | string | no | yyyy-MM-dd HH:mm:ss | Format used to parse
`Timestamp` columns. |
-| time_format | string | no | HH:mm:ss | Format used to parse `Time` columns. |
| sheet_name | string | no | - | Excel worksheet to read. |
| excel_use_header_line | boolean | no | false | Use the first Excel row as
column headers for name-based mapping. Only used when file_format_type is
excel. |
| excel_engine | string | no | `POI` | Excel reader: `POI` or `EasyExcel`. |
diff --git a/docs/en/connectors/source/ObsFile.md
b/docs/en/connectors/source/ObsFile.md
index aa3f07cbf2..f35fa0c49f 100644
--- a/docs/en/connectors/source/ObsFile.md
+++ b/docs/en/connectors/source/ObsFile.md
@@ -104,6 +104,25 @@ It only supports hadoop version **2.9.X+**.
| escape_char | string | no | - | A
single character that allows the quote or other special characters to appear
inside a CSV field without ending the field.
|
| recursive_file_scan | boolean | no | true |
Whether to scan subdirectories recursively. If `false`, subdirectories will be
ignored.
|
| sort_files_by_modification_time | boolean | no | false |
Sort files by modification time in descending order. Enable this when reading
evolving schemas to ensure schema inference uses the latest file.
|
+| enable_file_split | boolean | no | false | Turn
on the file splitting function. When `file_format_type` does not support
splitting or compression is enabled, the connector falls back to non-splitting
mode.
|
+| file_split_size | long | no | 134217728 | File
split size in bytes when `enable_file_split=true`. Must be greater than 0. For
text-like formats, split ends are aligned to the next `row_delimiter`. Default
is 128 MB.
|
+| excel_use_header_line | boolean | no | false | Use
the first Excel row as column headers for name-based mapping. Only used when
`file_format_type` is `excel`.
|
+| markdown_rag_metadata_enabled | boolean | no | false |
Append RAG-oriented metadata columns when reading markdown files. Only valid
when `file_format_type` is `markdown`.
|
+| pdf_rag_metadata_enabled | boolean | no | false |
Append RAG-oriented metadata columns when reading PDF files. Only valid when
`file_format_type` is `pdf`.
|
+| discovery_mode | string | no | once | File
discovery mode. Supported values: `once` (default), `continuous`. Continuous
mode periodically scans the path and currently requires `sync_mode=update` and
`file_format_type=binary`.
|
+| scan_interval | string | no | 10S |
Polling interval used when `discovery_mode=continuous`. Shorthand values such
as `10S` and ISO-8601 values such as `PT10S` are supported.
|
+| start_mode | string | no | earliest |
Initial scan behavior for continuous discovery. `earliest` processes existing
files; `latest` processes only later additions or changes.
|
+| sync_mode | string | no | full | File
sync mode. `update` compares source objects with `target_path` and reads only
new or changed objects. Update mode currently supports binary format only.
|
+| target_path | string | no | - |
Required when `sync_mode=update`. Target base path used for comparison and
normally the same as the sink `path`.
|
+| target_hadoop_conf | map | no | - |
Optional Hadoop configuration for the target filesystem when
`sync_mode=update`.
|
+| update_strategy | string | no | distcp |
Comparison strategy used by update mode. Supported values are `distcp` and
`strict`.
|
+| compare_mode | string | no | len_mtime |
Comparison mode used by update mode. Supported values are `len_mtime` and
`checksum`; checksum requires `update_strategy=strict`.
|
+| update_compare_parallelism | int | no | 8 |
Maximum parallelism for target metadata lookups. Valid range is `1-64`.
|
+| update_compare_bulk_threshold | int | no | 0 |
Positive values switch comparison to a directory listing when that many
candidates share a target parent. `0` disables automatic bulk listing.
|
+| post_sync_action | string | no | none |
Optional action after a continuously discovered object is checkpointed.
Supported values are `none`, `delete`, and `backup`.
|
+| backup_path | string | no | - |
Required when `post_sync_action=backup`. Backup destination must not overlap
with the source `path`.
|
+| retention_max_age | string | no | - |
Optional maximum age for SeaTunnel backup objects under `backup_path`.
|
+| retention_check_interval | string | no | 1H |
Retention scan interval when backup retention is configured.
|
### Tips
diff --git a/docs/en/connectors/source/OssFile.md
b/docs/en/connectors/source/OssFile.md
index ee9d8ebe91..cd3b519e38 100644
--- a/docs/en/connectors/source/OssFile.md
+++ b/docs/en/connectors/source/OssFile.md
@@ -216,6 +216,10 @@ If you assign file type to `parquet` `orc`, schema option
not required, connecto
| null_format | string | no | - | Used
when `file_format_type` is `text` or `csv`. Defines which field value
represents null. For CSV with a configured `schema.columns[].defaultValue`, a
matching `null_format` value or a column absent from the file header uses that
default. An empty CSV field still produces null unless it matches
`null_format`; columns without a default keep their existing behavior. CSV
defaults are converted to the column type whe [...]
| binary_chunk_size | int | no | 1024 | Only
used when file_format_type is binary. The chunk size (in bytes) for reading
binary files. Default is 1024 bytes. Larger values may improve performance for
large files but use more memory.
|
| binary_complete_file_mode | boolean | no | false | Only
used when file_format_type is binary. Whether to read the complete file as a
single chunk instead of splitting into chunks. When enabled, the entire file
content will be read into memory at once. Default is false.
|
+| enable_file_split | boolean | no | false |
Allows parallel reads of large text, JSON, CSV, and Parquet files. Unsupported
formats and files using a compression or archive codec are read without
splitting. |
+| file_split_size | long | no | 134217728 | File
split size in bytes when `enable_file_split=true`. Must be greater than 0. For
text-like formats, split ends are aligned to the next `row_delimiter`. Default
is 128 MB.
|
+| markdown_rag_metadata_enabled | boolean | no | false |
Append RAG-oriented metadata columns when reading markdown files. Only valid
when `file_format_type` is `markdown`.
|
+| pdf_rag_metadata_enabled | boolean | no | false |
Append RAG-oriented metadata columns when reading PDF files. Only valid when
`file_format_type` is `pdf`.
|
| discovery_mode | string | no | once | File
discovery mode. Supported values: `once` (default), `continuous`. Continuous
mode periodically scans the path and currently requires `sync_mode=update` and
`file_format_type=binary`. |
| scan_interval | string | no | 10S |
Polling interval used when `discovery_mode=continuous`. Shorthand values such
as `10S` and ISO-8601 values such as `PT10S` are supported. |
| start_mode | string | no | earliest |
Initial scan behavior for continuous discovery. `earliest` processes existing
files; `latest` processes only later additions or changes. |
@@ -240,8 +244,6 @@ If you assign file type to `parquet` `orc`, schema option
not required, connecto
| metalake_type | string | no | gravitino | The
type of metalake service, currently supports `gravitino`.
|
| recursive_file_scan | boolean | no | true |
Whether to scan subdirectories recursively. If `false`, subdirectories will be
ignored.
|
| sort_files_by_modification_time | boolean | no | false |
Sort files by modification time in descending order. Enable this when reading
evolving schemas to ensure schema inference uses the latest file.
|
-| enable_file_split | boolean | no | false | Only
used when file_format_type is text, json, csv or parquet. Turn on the file
splitting function. When the file is very large, file splitting allows a single
file to be read in parallel by multiple readers.
|
-| file_split_size | long | no | 134217728 | Only
used when `enable_file_split` is true. The size of each split in bytes, default
128 MB (134217728).
|
### file_format_type [string]
diff --git a/docs/en/connectors/source/OssJindoFile.md
b/docs/en/connectors/source/OssJindoFile.md
index 77f22b9e15..d5abd3389d 100644
--- a/docs/en/connectors/source/OssJindoFile.md
+++ b/docs/en/connectors/source/OssJindoFile.md
@@ -96,6 +96,25 @@ It only supports hadoop version **2.9.X+**.
| escape_char | string | no | -
| A single character used to escape quotes or other special characters inside
a CSV field so they do not end the field. |
| recursive_file_scan | boolean | no | true
| Whether to recursively scan subdirectories. If set to `false`,
subdirectories are ignored and only files under the specified path are scanned.
|
| sort_files_by_modification_time | boolean | no | false
| Whether to sort files by modification time in descending order. Enable
this when reading evolving schemas to ensure schema inference uses the latest
file. Disabled by default to avoid performance overhead for large file
directories. |
+| enable_file_split | boolean | no | false
| Turn on the file splitting function. When `file_format_type` does not
support splitting or compression is enabled, the connector falls back to
non-splitting mode. |
+| file_split_size | long | no | 134217728
| File split size in bytes when `enable_file_split=true`. Must be greater than
0. For text-like formats, split ends are aligned to the next `row_delimiter`.
Default is 128 MB. |
+| excel_use_header_line | boolean | no | false
| Use the first Excel row as column headers for name-based mapping. Only used
when `file_format_type` is `excel`. |
+| markdown_rag_metadata_enabled | boolean | no | false
| Append RAG-oriented metadata columns when reading markdown files. Only
valid when `file_format_type` is `markdown`. |
+| pdf_rag_metadata_enabled | boolean | no | false
| Append RAG-oriented metadata columns when reading PDF files. Only valid when
`file_format_type` is `pdf`. |
+| discovery_mode | string | no | once
| File discovery mode. Supported values: `once` (default), `continuous`.
Continuous mode periodically scans the path and currently requires
`sync_mode=update` and `file_format_type=binary`. |
+| scan_interval | string | no | 10S
| Polling interval used when `discovery_mode=continuous`. Shorthand values
such as `10S` and ISO-8601 values such as `PT10S` are supported. |
+| start_mode | string | no | earliest
| Initial scan behavior for continuous discovery. `earliest` processes
existing files; `latest` processes only later additions or changes. |
+| sync_mode | string | no | full
| File sync mode. `update` compares source objects with `target_path` and
reads only new or changed objects. Update mode currently supports binary format
only. |
+| target_path | string | no | -
| Required when `sync_mode=update`. Target base path used for comparison and
normally the same as the sink `path`. |
+| target_hadoop_conf | map | no | -
| Optional Hadoop configuration for the target filesystem when
`sync_mode=update`. |
+| update_strategy | string | no | distcp
| Comparison strategy used by update mode. Supported values are `distcp` and
`strict`. |
+| compare_mode | string | no | len_mtime
| Comparison mode used by update mode. Supported values are `len_mtime` and
`checksum`; checksum requires `update_strategy=strict`. |
+| update_compare_parallelism | int | no | 8
| Maximum parallelism for target metadata lookups. Valid range is `1-64`. |
+| update_compare_bulk_threshold | int | no | 0
| Positive values switch comparison to a directory listing when that many
candidates share a target parent. `0` disables automatic bulk listing. |
+| post_sync_action | string | no | none
| Optional action after a continuously discovered object is checkpointed.
Supported values are `none`, `delete`, and `backup`. |
+| backup_path | string | no | -
| Required when `post_sync_action=backup`. Backup destination must not overlap
with the source `path`. |
+| retention_max_age | string | no | -
| Optional maximum age for SeaTunnel backup objects under `backup_path`. |
+| retention_check_interval | string | no | 1H
| Retention scan interval when backup retention is configured. |
### path [string]
@@ -503,6 +522,48 @@ When enabled, files will be sorted by their modification
time (newest first). Th
Source plugin common parameters, please refer to [Source Common
Options](../common-options/source-common-options.md) for details.
+## Continuous Discovery
+
+`discovery_mode=continuous` keeps a streaming job running and polls OSS for
new or changed objects. This mode uses the existing file comparison path; it
does not consume OSS event notifications and does not emit object delete events
or changelog rows.
+
+Continuous discovery currently requires `file_format_type="binary"` and
`sync_mode="update"`. Set `target_path` to the same base path used by the sink
so the source can skip unchanged objects. The default `discovery_mode="once"`
preserves the existing bounded-source behavior.
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ OssJindoFile {
+ path = "/watch/source"
+ bucket = "oss://tyrantlucifer-image-bed"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxxxxxxx"
+ endpoint = "oss-cn-beijing.aliyuncs.com"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ OssJindoFile {
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ bucket = "oss://tyrantlucifer-image-bed"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxxxxxxx"
+ endpoint = "oss-cn-beijing.aliyuncs.com"
+ file_format_type = "binary"
+ }
+}
+```
+
## Example
```hocon
diff --git a/docs/en/connectors/source/TiDB-CDC.md
b/docs/en/connectors/source/TiDB-CDC.md
index 6b70d3226d..226edf907e 100644
--- a/docs/en/connectors/source/TiDB-CDC.md
+++ b/docs/en/connectors/source/TiDB-CDC.md
@@ -67,7 +67,6 @@ Please download and put the MySQL driver and
`tikv-client-java` in the directory
| Name | Type | Required | Default | Description
|
|-------------------------------|---------|----------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| url | String | Yes | - |
MySQL-compatible JDBC URL used to discover table metadata. Example:
`jdbc:mysql://tidb0:4000/inventory`.
|
-| driver | String | No | - | JDBC driver
class used to discover table metadata, e.g. `com.mysql.cj.jdbc.Driver`.
|
| username | String | Yes | - | Username
used to connect to the TiDB server.
|
| driver | String | No | - | JDBC driver
class used for table metadata discovery, for example
`com.mysql.cj.jdbc.Driver`. The examples in this document set it explicitly.
|
| password | String | Yes | - | Password
used to connect to the TiDB server.
|
diff --git a/docs/en/transforms/embedding.md b/docs/en/transforms/embedding.md
index 67c680912c..d4cba4db3e 100644
--- a/docs/en/transforms/embedding.md
+++ b/docs/en/transforms/embedding.md
@@ -19,7 +19,6 @@ different API endpoints.
| secret_key | string | no | - | The
secret key required for additional authentication with the embedding service.
Only required by `AMAZON` and `QIANFAN`.
|
| aws_region | string | conditional | | AWS
Region. Required when `model_provider` is `AMAZON` (Amazon Bedrock).
|
| single_vectorized_input_number | int | no | 1 | The
number of inputs vectorized in one request. Default is 1.
|
-| process_batch_size | int | no | 100 | The row
batch size of each process (legacy name: `inference_batch_size`).
|
| vectorization_fields | map | yes | - | A
mapping between input fields and their corresponding output vector fields.
|
| model | string | yes | - | The
specific model to use for embedding (e.g: `text-embedding-3-small` for OPENAI).
|
| api_path | string | no | - | The API
endpoint for the embedding service. Typically provided by the model provider.
Legacy alias: `openai.api_path`.
|
diff --git a/docs/zh/connectors/sink/BosFile.md
b/docs/zh/connectors/sink/BosFile.md
index ff3840b233..0d4cab861d 100644
--- a/docs/zh/connectors/sink/BosFile.md
+++ b/docs/zh/connectors/sink/BosFile.md
@@ -78,18 +78,24 @@ import ChangeLog from '../changelog/connector-file-bos.md';
| compress_codec | string | 否 | none
| 压缩格式 |
| xml_root_tag | string | 否 | RECORDS
| xml 格式使用 |
| xml_row_tag | string | 否 | RECORD
| xml 格式使用 |
-| xml_use_attr_format | boolean | 否 | -
| xml 格式使用 |
+| xml_use_attr_format | boolean | 条件必填 | -
| `file_format_type` 为 `xml` 时必填。 |
| single_file_mode | boolean | 否 | false
| 每个并行度只输出一个文件 |
| create_empty_file_when_no_data | boolean | 否 | false
| 上游无数据时仍生成空文件 |
| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false
| parquet 格式使用 |
| parquet_avro_write_fixed_as_int96 | array | 否 | -
| parquet 格式使用 |
| encoding | string | 否 | "UTF-8"
| json/text/csv/xml 格式使用 |
-| max_rows_in_memory | int | 否 | -
| 仅在 file_format_type 为 excel 时使用 |
-| sheet_max_rows | int | 否 | 1048576
| 仅在 file_format_type 为 excel 时使用 |
-| sheet_name | string | 否 | Sheet0
| 仅在 file_format_type 为 excel 时使用 |
-| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅在 file_format 为 csv 时使用 |
-| enable_header_write | boolean | 否 | false
| 仅当 file_format_type 为 text、csv
时使用。`false`:不写表头,`true`:写表头 |
-| merge_update_event | boolean | 否 | false
| 仅当 file_format_type 为
canal_json、debezium_json、maxwell_json 时使用。设置为 `true` 时,会将 `UPDATE_AFTER` 与
`UPDATE_BEFORE` 合并为 `UPDATE` 事件数据 |
+| max_rows_in_memory | int | 否 | -
| 仅在 file_format_type 为 excel 时使用。 |
+| sheet_max_rows | int | 否 | 1048576
| 仅在 file_format_type 为 excel 时使用。 |
+| sheet_name | string | 否 | Sheet0
| 仅在 file_format_type 为 excel 时使用。 |
+| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅在文件格式为 CSV 时使用。 |
+| enable_header_write | boolean | 否 | false
| 仅在 file_format_type 为 text,csv 时使用。<br/>
false:不写入表头,true:写入表头。 |
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
+| merge_update_event | boolean | 否 | false
| 仅当 file_format_type 为 canal_json、debezium_json 或
maxwell_json 时使用。设为 true 时,UPDATE_AFTER 和 UPDATE_BEFORE 事件会合并为 UPDATE 事件数据 |
+| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 true 时,来自上游的
ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
+| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 现有目录处理方式 |
+| data_save_mode | string | 否 | APPEND_DATA
| 现有数据处理方式 |
| common-options | object | 否 | -
| Sink 插件通用参数,请参考 [Sink Common
Options](../common-options/sink-common-options.md) |
## 示例
diff --git a/docs/zh/connectors/sink/CosFile.md
b/docs/zh/connectors/sink/CosFile.md
index 215c184f50..78db36c17b 100644
--- a/docs/zh/connectors/sink/CosFile.md
+++ b/docs/zh/connectors/sink/CosFile.md
@@ -92,6 +92,11 @@ import ChangeLog from '../changelog/connector-file-cos.md';
| encoding | string | 否 | "UTF-8"
| 仅当file_format_type为json、text、csv、xml时使用.
|
| merge_update_event | boolean | 否 | false
| 仅当file_format_type为canal_json、debezium_json、maxwell_json
时使用。设置为 `true` 时,会将 `UPDATE_AFTER` 与 `UPDATE_BEFORE` 合并为 `UPDATE` 事件数据。
|
| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 true 时,来自上游的
ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd
HH:mm:ss | 仅在 file_format_type 为 `text`、`csv`、`excel` 或
`xml` 时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
+| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 现有目录处理方式
|
+| data_save_mode | string | 否 | APPEND_DATA
| 现有数据处理方式
|
### path [string]
diff --git a/docs/zh/connectors/sink/FtpFile.md
b/docs/zh/connectors/sink/FtpFile.md
index 373ae9079d..9ca67a7a79 100644
--- a/docs/zh/connectors/sink/FtpFile.md
+++ b/docs/zh/connectors/sink/FtpFile.md
@@ -86,6 +86,10 @@ import ChangeLog from '../changelog/connector-file-ftp.md';
| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 现有目录处理方法
|
| data_save_mode | string | 否 | APPEND_DATA
| 现有数据处理方法
|
| multi_table_sink_replica | int | 否 | 1
| 多表写入时,每张表对应的 Sink Writer 副本数。
|
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
+| merge_update_event | boolean | 否 | false
| 仅当 file_format_type 为 canal_json、debezium_json 或
maxwell_json 时使用。设为 true 时,UPDATE_AFTER 和 UPDATE_BEFORE 事件会合并为 UPDATE 事件数据 |
### host [string]
diff --git a/docs/zh/connectors/sink/GcsFile.md
b/docs/zh/connectors/sink/GcsFile.md
index 0d989293f9..3af8acea3f 100644
--- a/docs/zh/connectors/sink/GcsFile.md
+++ b/docs/zh/connectors/sink/GcsFile.md
@@ -87,6 +87,17 @@ Apache License 2.0,并以 Java 8 为目标版本。shaded GCS Hadoop 库已打
| datetime_format | string | 否 | `yyyy-MM-dd HH:mm:ss` | 使用
`text`、`csv`、`excel` 或 `xml` 格式写入 timestamp 类型数据时使用的时间格式。 |
| time_format | string | 否 | `HH:mm:ss` | 使用 `text`、`csv`、`excel` 或 `xml` 格式写入
time 类型数据时使用的时间格式。 |
| multi_table_sink_replica | int | 否 | `1` | 多表写入模式下每张表的 Sink writer 副本数,必须至少为
1。 |
+| max_rows_in_memory | int | 否 | - | 仅在 file_format_type 为 excel 时使用。 |
+| sheet_max_rows | int | 否 | 1048576 | 仅在 file_format_type 为 excel 时使用。 |
+| sheet_name | string | 否 | Sheet0 | 仅在 file_format_type 为 excel 时使用。 |
+| csv_string_quote_mode | enum | 否 | MINIMAL | 仅在文件格式为 CSV 时使用。 |
+| xml_root_tag | string | 否 | RECORDS | 适用于 `file_format_type` 为 `xml` 的写入。 |
+| xml_row_tag | string | 否 | RECORD | 适用于 `file_format_type` 为 `xml` 的写入。 |
+| xml_use_attr_format | boolean | 条件必填 | - | `file_format_type` 为 `xml` 时必填。 |
+| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false | 仅在
`file_format_type` 为 parquet 时使用 |
+| parquet_avro_write_fixed_as_int96 | array | 否 | - | 仅在 `file_format_type` 为
parquet 时使用 |
+| merge_update_event | boolean | 否 | false | 仅当 file_format_type 为
canal_json、debezium_json 或 maxwell_json 时使用。设为 true 时,UPDATE_AFTER 和
UPDATE_BEFORE 事件会合并为 UPDATE 事件数据 |
+| schema_evolution_enabled | boolean | 否 | false | 开启 Schema 演变支持,适用于 CDC 管道。为
true 时,来自上游的 ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
| common-options | | 否 | - | 参见 [Sink
通用配置](../common-options/sink-common-options.md)。 |
Sink 也支持对应 SeaTunnel 文件格式定义的格式专用配置,包括 Parquet INT96 和 XML 元素配置。
diff --git a/docs/zh/connectors/sink/GraphQL.md
b/docs/zh/connectors/sink/GraphQL.md
index d9c15e961a..b99ddc699a 100644
--- a/docs/zh/connectors/sink/GraphQL.md
+++ b/docs/zh/connectors/sink/GraphQL.md
@@ -47,9 +47,9 @@ mutation 一起发送。
| timeout | Long | 否 | - | 传给 HTTP 客户端参数的请求超时时间。 |
| headers | Map | 否 | - | HTTP 请求头,例如鉴权请求头。 |
| params | Map | 否 | - | HTTP 请求参数。 |
-| retry | Int | 否 | - | HTTP 请求出现 IOException 时的最大重试次数。
|
-| retry_backoff_multiplier_ms | Int | 否 | 100 | HTTP 请求失败后的重试退避倍率,单位毫秒。 |
-| retry_backoff_max_ms | Int | 否 | 10000 | HTTP 请求失败后的最大重试退避时间,单位毫秒。 |
+| retry | Int | 否 | - | 连接器对 HTTP I/O
故障重试时的最大请求尝试次数,包含首次请求。 |
+| retry_backoff_multiplier_ms | Int | 否 | 100 | 斐波那契退避的时间倍率,单位毫秒。 |
+| retry_backoff_max_ms | Int | 否 | 10000 | 每次重试前的最大等待时间,单位毫秒。 |
| connect_timeout_ms | Int | 否 | 12000 | HTTP 连接超时时间,单位毫秒。 |
| socket_timeout_ms | Int | 否 | 60000 | HTTP socket 超时时间,单位毫秒。 |
| multi_table_sink_replica | Int | 否 | 1 | Sink 通用参数,用于控制多表运行时的 sink 副本数;但写入到该
sink 的所有行仍使用同一条 GraphQL mutation。 |
@@ -164,8 +164,9 @@ sink {
### 向 GraphQL 服务流式发送 Mutation
-在流式模式下持续执行同一个 mutation。sink 会为每一行发送一次 mutation,并通过
-`retry` 加指数退避来吸收瞬时的 HTTP 失败。
+在流式模式下持续执行同一个 mutation。Sink 会为每一行发送一次 mutation。
+通过 `retry` 启用重试后,连接器对执行 HTTP 请求时的 `IOException` 使用斐波那契退避。
+每次重试前的等待时间上限由 `retry_backoff_max_ms` 设置。
```hocon
env {
diff --git a/docs/zh/connectors/sink/ObsFile.md
b/docs/zh/connectors/sink/ObsFile.md
index a6a8bdf3e1..67d0cb6b8f 100644
--- a/docs/zh/connectors/sink/ObsFile.md
+++ b/docs/zh/connectors/sink/ObsFile.md
@@ -87,9 +87,7 @@ import ChangeLog from '../changelog/connector-file-obs.md';
| create_empty_file_when_no_data | boolean | 否 | false
| 当上游没有数据同步时,仍然会生成相应的数据文件。
|
| compress_codec | string | 否 | none
| 文件的压缩编解码器。Excel 格式不支持任何压缩格式。[提示](#compress_codec)
|
| tmp_path | string | 否 | /tmp/seatunnel
| 结果文件会先写入临时路径,然后使用 `mv` 将临时目录提交到目标目录。需要一个 OBS 目录。
|
-| filename_extension | string | 否 | -
| 使用自定义文件扩展名覆盖默认的文件扩展名。例如 `.xml`、`.json`、`dat`、`.customtype`。
|
-| encoding | string | 否 | "UTF-8"
| 仅在file_format_type为json、text、csv时使用。
|
-| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅在file_format为csv时使用。
|
+| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅在 `file_format_type` 为 `csv` 时使用。 |
| enable_header_write | boolean | 否 | false
| 仅当 file_format_type 为 text、csv 时使用。`false`:不写表头,`true`:写表头。
|
| common-options | object | 否 | -
| Sink 插件通用参数,请参考 [Sink Common
Options](../common-options/sink-common-options.md)。[提示](#common_options)
|
| max_rows_in_memory | int | 否 | -
| 当文件格式为Excel时,内存中可以缓存的最大数据项数。仅在file_format_type为excel时使用。
|
@@ -97,6 +95,18 @@ import ChangeLog from '../changelog/connector-file-obs.md';
| sheet_name | string | 否 | Sheet0
| 标签页。仅在file_format_type为excel时使用。
|
| merge_update_event | boolean | 否 | false
| 仅当file_format_type为canal_json、debezium_json、maxwell_json
时使用。设置为 `true` 时,会将 `UPDATE_AFTER` 与 `UPDATE_BEFORE` 合并为 `UPDATE` 事件数据。 |
| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 true 时,来自上游的
ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
+| encoding | string | 否 | "UTF-8"
| 仅当 `file_format_type` 为 `json`、`text`、`csv`、`xml`
时使用。要写入文件的字符集,通过 `Charset.forName(encoding)` 解析。 |
+| filename_extension | string | 否 | -
| 输出文件名后缀。设置后会追加到生成的文件名(缺少前导点时自动补上),例如 `csv`、`.txt`、`json` 或
`.xml`;未设置时使用格式默认后缀。 |
+| xml_root_tag | string | 否 | RECORDS
| 适用于 `file_format_type` 为 `xml` 的写入。
|
+| xml_row_tag | string | 否 | RECORD
| 适用于 `file_format_type` 为 `xml` 的写入。
|
+| xml_use_attr_format | boolean | 条件必填 | -
| `file_format_type` 为 `xml` 时必填。 |
+| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false
| 仅在 `file_format_type` 为 parquet 时使用
|
+| parquet_avro_write_fixed_as_int96 | array | 否 | -
| 仅在 `file_format_type` 为 parquet 时使用
|
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
+| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 现有目录处理方式
|
+| data_save_mode | string | 否 | APPEND_DATA
| 现有数据处理方式
|
### 提示
diff --git a/docs/zh/connectors/sink/OssFile.md
b/docs/zh/connectors/sink/OssFile.md
index 70b417d230..a193149711 100644
--- a/docs/zh/connectors/sink/OssFile.md
+++ b/docs/zh/connectors/sink/OssFile.md
@@ -138,6 +138,9 @@ import ChangeLog from '../changelog/connector-file-oss.md';
| data_save_mode | Enum | 否 | APPEND_DATA
| 在开启同步任务之前,对目标路径中的数据文件进行不同的处理
|
| merge_update_event | boolean | 否 | false
| 仅当file_format_type为canal_json、debezium_json、maxwell_json
时使用。
|
| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 true 时,来自上游的
ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
### path [string]
diff --git a/docs/zh/connectors/sink/OssJindoFile.md
b/docs/zh/connectors/sink/OssJindoFile.md
index 66393ff701..fcdb635544 100644
--- a/docs/zh/connectors/sink/OssJindoFile.md
+++ b/docs/zh/connectors/sink/OssJindoFile.md
@@ -92,7 +92,7 @@ import ChangeLog from
'../changelog/connector-file-oss-jindo.md';
| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅当 `file_format_type` 为 `csv` 时使用。
|
| xml_root_tag | string | 否 | RECORDS
| 仅当 `file_format_type` 为 `xml` 时使用。
|
| xml_row_tag | string | 否 | RECORD
| 仅当 `file_format_type` 为 `xml` 时使用。
|
-| xml_use_attr_format | boolean | 否 | -
| 仅当 `file_format_type` 为 `xml` 时使用。
|
+| xml_use_attr_format | boolean | 条件必填 | -
| 仅当 `file_format_type` 为 `xml` 时使用。写 XML 文件时必填。 |
| single_file_mode | boolean | 否 | false
| 每个并行度只输出一个文件。启用此选项后,`batch_size` 不再生效,输出文件名不包含文件块后缀。
|
| create_empty_file_when_no_data | boolean | 否 | false
| 当上游没有数据同步时,仍然会生成对应的数据文件。
|
| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false
| 仅当 `file_format_type` 为 `parquet` 时使用。
|
@@ -100,6 +100,11 @@ import ChangeLog from
'../changelog/connector-file-oss-jindo.md';
| encoding | string | 否 | "UTF-8"
| 仅当 `file_format_type` 为 `json`、`text`、`csv`、`xml`
时使用。要写入文件的字符集,通过 `Charset.forName(encoding)` 解析。
|
| merge_update_event | boolean | 否 | false
| 仅当 `file_format_type` 为
`canal_json`、`debezium_json`、`maxwell_json` 时使用。设置为 `true` 时,会将 `UPDATE_AFTER`
与 `UPDATE_BEFORE` 合并为 `UPDATE` 事件数据。 |
| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 `true` 时,来自上游的
`ADD/DROP/RENAME/MODIFY` 列事件无需重启作业即可应用到 Sink。不支持 `binary` 格式。
|
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel` 或 `xml`
时使用。时间类型格式,用于告知 connector 如何写出 time 值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
+| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 现有目录处理方式
|
+| data_save_mode | string | 否 | APPEND_DATA
| 现有数据处理方式
|
### path [string]
diff --git a/docs/zh/connectors/sink/S3File.md
b/docs/zh/connectors/sink/S3File.md
index 9a04635895..5ff033c0a3 100644
--- a/docs/zh/connectors/sink/S3File.md
+++ b/docs/zh/connectors/sink/S3File.md
@@ -147,6 +147,9 @@ import ChangeLog from '../changelog/connector-file-s3.md';
| enable_header_write | boolean | 否 | false
| 仅当 file_format_type 为 text,csv 时使用。<br/>
false: 不写入表头, true: 写入表头。
|
| encoding | string | 否 | "UTF-8"
| 仅当 file_format_type 为 json,text,csv,xml
时使用。
|
| merge_update_event | boolean | 否 | false
| 仅当 file_format_type 为
canal_json、debezium_json、maxwell_json 时使用。<br/> 设置为 true 时,UPDATE_AFTER 和
UPDATE_BEFORE 事件会合并为 UPDATE 事件数据。
|
+| date_format | string | 否 | yyyy-MM-dd
| 仅在 file_format_type 为 `text`、`csv`、`excel`
或 `xml` 时使用。日期类型格式,用于告知 connector 如何写出 date
值。支持格式(示例):`yyyy-MM-dd`、`yyyy.MM.dd`、`yyyy/MM/dd`。 |
+| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel`
或 `xml` 时使用。时间戳类型格式,用于告知 connector 如何写出 datetime 值。支持格式:`yyyy-MM-dd
HH:mm:ss`、`yyyy.MM.dd HH:mm:ss`、`yyyy/MM/dd HH:mm:ss`、`yyyyMMddHHmmss`。 |
+| time_format | string | 否 | HH:mm:ss
| 仅在 file_format_type 为 `text`、`csv`、`excel`
或 `xml` 时使用。时间类型格式,用于告知 connector 如何写出 time
值。支持格式(示例):`HH:mm:ss`、`HH:mm:ss.SSS`。 |
### path [string]
diff --git a/docs/zh/connectors/sink/SmbFile.md
b/docs/zh/connectors/sink/SmbFile.md
index 631c924273..7b342c7803 100644
--- a/docs/zh/connectors/sink/SmbFile.md
+++ b/docs/zh/connectors/sink/SmbFile.md
@@ -73,7 +73,7 @@ import ChangeLog from '../changelog/connector-file-smb.md';
| sheet_name | string | 否 | Sheet0
| 仅在 file_format_type 为 excel 时使用
|
| xml_root_tag | string | 否 | RECORDS
| 仅在 file_format 为 xml 时使用
|
| xml_row_tag | string | 否 | RECORD
| 仅在 file_format 为 xml 时使用
|
-| xml_use_attr_format | boolean | 否 | -
| 仅在 file_format 为 xml 时使用
|
+| xml_use_attr_format | boolean | 条件必填 | -
| `file_format_type` 为 `xml` 时必填。 |
| single_file_mode | boolean | 否 | false
| 每个并行度只会输出一个文件。
|
| encoding | string | 否 | UTF-8
| 仅在 file_format_type 为 text, json, csv, xml 时使用
|
| date_format | string | 否 | yyyy-MM-dd
| 日期类型格式
|
@@ -83,8 +83,12 @@ import ChangeLog from '../changelog/connector-file-smb.md';
| schema_save_mode | string | 否 |
CREATE_SCHEMA_WHEN_NOT_EXIST | 已有目录处理方式
|
| data_save_mode | string | 否 | APPEND_DATA
| 已有数据处理方式
|
| enable_header_write | boolean | 否 | false
| 仅在 file_format_type 为 text, csv 时使用。false:不写表头,true:写表头
|
-| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false
| 仅在 file_format 为 parquet 时使用
|
-| parquet_avro_write_fixed_as_int96 | array | 否 | -
| 仅在 file_format 为 parquet 时使用
|
+| parquet_avro_write_timestamp_as_int96 | boolean | 否 | false
| 仅在 `file_format_type` 为 `parquet` 时使用。
|
+| parquet_avro_write_fixed_as_int96 | array | 否 | -
| 仅在 `file_format_type` 为 `parquet` 时使用。
|
+| csv_string_quote_mode | enum | 否 | MINIMAL
| 仅在文件格式为 CSV 时使用。
|
+| sheet_max_rows | int | 否 | 1048576
| 仅在 file_format_type 为 excel 时使用。
|
+| merge_update_event | boolean | 否 | false
| 仅当 file_format_type 为 canal_json、debezium_json 或
maxwell_json 时使用。设为 true 时,UPDATE_AFTER 和 UPDATE_BEFORE 事件会合并为 UPDATE 事件数据 |
+| schema_evolution_enabled | boolean | 否 | false
| 开启 Schema 演变支持,适用于 CDC 管道。为 true 时,来自上游的
ADD/DROP/RENAME/MODIFY 列事件无需重启作业即可应用到 Sink。不支持 binary 格式。 |
## 示例
diff --git a/docs/zh/connectors/source/BosFile.md
b/docs/zh/connectors/source/BosFile.md
index ef6955995d..8f7b98511b 100644
--- a/docs/zh/connectors/source/BosFile.md
+++ b/docs/zh/connectors/source/BosFile.md
@@ -93,6 +93,24 @@ import ChangeLog from '../changelog/connector-file-bos.md';
| recursive_file_scan | boolean | 否 | true |
| sort_files_by_modification_time | boolean | 否 | false
|
| common-options | | 否 | - |
+| enable_file_split | boolean | 否 | false |
+| file_split_size | long | 否 | 134217728 |
+| markdown_rag_metadata_enabled | boolean | 否 | false |
+| pdf_rag_metadata_enabled | boolean | 否 | false |
+| discovery_mode | string | 否 | once |
+| scan_interval | string | 否 | 10S |
+| start_mode | string | 否 | earliest |
+| sync_mode | string | 否 | full |
+| target_path | string | 否 | - |
+| target_hadoop_conf | map | 否 | - |
+| update_strategy | string | 否 | distcp |
+| compare_mode | string | 否 | len_mtime |
+| update_compare_parallelism | int | 否 | 8 |
+| update_compare_bulk_threshold | int | 否 | 0 |
+| post_sync_action | string | 否 | none |
+| backup_path | string | 否 | - |
+| retention_max_age | string | 否 | - |
+| retention_check_interval | string | 否 | 1H |
### path [string]
@@ -122,6 +140,48 @@ BOS 的 endpoint,例如 `http://bj.bcebos.com`。
Source 插件通用参数,详情请参见 [Source Common
Options](../common-options/source-common-options.md)。
+## 持续发现
+
+`discovery_mode=continuous` 会让流式作业保持运行,并定期轮询 BOS 中的新增或变更对象。该模式使用现有文件对比逻辑,不消费
BOS 事件通知,也不会为对象删除或覆盖生成 changelog 行。
+
+持续发现目前需要同时配置 `file_format_type="binary"` 和 `sync_mode="update"`。`target_path`
应与 sink 的基础 `path` 一致,以便源端跳过未变化对象。默认的 `discovery_mode="once"` 会保持原有有界读取行为。
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ BosFile {
+ bucket = "bos://source-bucket"
+ path = "/watch/source"
+ access_key = "your-access-key"
+ secret_key = "your-secret-key"
+ endpoint = "http://bj.bcebos.com"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ BosFile {
+ bucket = "bos://source-bucket"
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ access_key = "your-access-key"
+ secret_key = "your-secret-key"
+ endpoint = "http://bj.bcebos.com"
+ file_format_type = "binary"
+ }
+}
+```
+
## 示例
```hocon
diff --git a/docs/zh/connectors/source/CosFile.md
b/docs/zh/connectors/source/CosFile.md
index df043b20fb..8cc4b70797 100644
--- a/docs/zh/connectors/source/CosFile.md
+++ b/docs/zh/connectors/source/CosFile.md
@@ -92,6 +92,25 @@ import ChangeLog from '../changelog/connector-file-cos.md';
| escape_char | string | 否 | - |
用于在 CSV 字段内转义引号或特殊字符的单字符。 |
| recursive_file_scan | boolean | 否 | true |
是否递归扫描子目录,默认 true。 |
| sort_files_by_modification_time | boolean | 否 | false
| 是否按修改时间降序排序文件。启用此选项后,在读取不断演化的 schema 时可确保 schema 推断使用最新的文件。 |
+| enable_file_split | boolean | 否 | false |
开启文件切分功能。当 `file_format_type` 不支持切分或启用了压缩时,连接器会回退为不切分模式。 |
+| file_split_size | long | 否 | 134217728 |
`enable_file_split=true` 时的文件切分大小(字节),必须大于 0。对于文本类格式,切分点会对齐到下一个
`row_delimiter`。默认 128 MB。 |
+| excel_use_header_line | boolean | 否 | false | 使用
Excel 第一行作为列头进行按名称映射。仅在 `file_format_type` 为 `excel` 时生效。 |
+| markdown_rag_metadata_enabled | boolean | 否 | false |
读取 markdown 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `markdown` 时生效。 |
+| pdf_rag_metadata_enabled | boolean | 否 | false | 读取
PDF 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `pdf` 时生效。 |
+| discovery_mode | string | 否 | once |
文件发现模式,支持 `once`(默认)和 `continuous`。continuous 模式会定期扫描路径,目前需要同时配置
`sync_mode=update` 和 `file_format_type=binary`。 |
+| scan_interval | string | 否 | 10S |
`discovery_mode=continuous` 的轮询间隔,支持 `10S` 等简写和 `PT10S` 等 ISO-8601 格式。 |
+| start_mode | string | 否 | earliest |
持续发现的初始扫描方式。`earliest` 会处理已有文件,`latest` 仅处理后续新增或变更。 |
+| sync_mode | string | 否 | full |
文件同步模式。`update` 会将源对象与 `target_path` 对比,只读取新增或变更对象,目前仅支持 binary 格式。 |
+| target_path | string | 否 | - |
`sync_mode=update` 时必填,通常应与 sink 的 `path` 一致。 |
+| target_hadoop_conf | map | 否 | - |
`sync_mode=update` 时可选的目标文件系统 Hadoop 配置。 |
+| update_strategy | string | 否 | distcp |
update 模式的对比策略,支持 `distcp` 和 `strict`。 |
+| compare_mode | string | 否 | len_mtime |
update 模式的对比方式,支持 `len_mtime` 和 `checksum`;checksum 需要
`update_strategy=strict`。 |
+| update_compare_parallelism | int | 否 | 8 |
目标对象元数据查询的最大并发数,有效范围为 `1-64`。 |
+| update_compare_bulk_threshold | int | 否 | 0 |
同一目标父目录的候选数达到正数阈值时改用一次目录枚举;`0` 表示关闭自动批量枚举。 |
+| post_sync_action | string | 否 | none |
持续发现对象完成 checkpoint 后的可选动作,支持 `none`、`delete` 和 `backup`。 |
+| backup_path | string | 否 | - |
`post_sync_action=backup` 时必填,且备份路径不能与源 `path` 重叠。 |
+| retention_max_age | string | 否 | - |
`backup_path` 中 SeaTunnel 备份对象的可选最大保留时间。 |
+| retention_check_interval | string | 否 | 1H |
配置备份保留策略时的清理扫描间隔。 |
### path [string]
@@ -504,6 +523,48 @@ abc.*
源插件常用参数,详见[源端通用选项](../common-options/source-common-options.md)。
+## 持续发现
+
+`discovery_mode=continuous` 会让流式作业保持运行,并定期轮询 COS 中的新增或变更对象。该模式使用现有文件对比逻辑,不消费
COS 事件通知,也不会为对象删除或覆盖生成 changelog 行。
+
+持续发现目前需要同时配置 `file_format_type="binary"` 和 `sync_mode="update"`。`target_path`
应与 sink 的基础 `path` 一致,以便源端跳过未变化对象。默认的 `discovery_mode="once"` 会保持原有有界读取行为。
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ CosFile {
+ path = "/watch/source"
+ bucket = "cosn://seatunnel-test"
+ region = "ap-guangzhou"
+ secret_id = "xxxxxxxxxxxxxxxxx"
+ secret_key = "xxxxxxxxxxxxxxxxx"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ CosFile {
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ bucket = "cosn://seatunnel-test"
+ region = "ap-guangzhou"
+ secret_id = "xxxxxxxxxxxxxxxxx"
+ secret_key = "xxxxxxxxxxxxxxxxx"
+ file_format_type = "binary"
+ }
+}
+```
+
## 例如
```hocon
diff --git a/docs/zh/connectors/source/DB2-CDC.md
b/docs/zh/connectors/source/DB2-CDC.md
index 533a54a758..d723c9a188 100644
--- a/docs/zh/connectors/source/DB2-CDC.md
+++ b/docs/zh/connectors/source/DB2-CDC.md
@@ -80,7 +80,6 @@ Debezium DB2,在初始快照完成后会继续读取已提交的 INSERT、UPDA
| snapshot.fetch.size | Integer | 否 | 1024 | 读取表快照时每次轮询的最大获取大小。 |
| enable_concurrent_read | Boolean | 否 | true | 快照阶段是否启用分片并发读取。设置为 false
时,源会以单个分片读取表,不做分片分析,适用于没有索引的表。 |
| server-time-zone | String | 否 | JVM 系统时区 | 数据库服务器中的会话时区。 |
-| split.allow-sampling | Boolean | 否 | true | 是否启用基于采样的分片策略。设置为 false
时,无论预估分片数是否超过阈值,系统都会回退到非均匀分片方式(迭代查询方式)。 |
| connect.timeout.ms | Long | 否 | 30000 | 连接器尝试连接到数据库服务器后,在超时之前等待的最长时间。 |
| connect.max-retries | Integer | 否 | 3 | 连接器重试建立数据库连接的最大次数。 |
| connection.pool.size | Integer | 否 | 20 | 连接池大小。 |
diff --git a/docs/zh/connectors/source/GcsFile.md
b/docs/zh/connectors/source/GcsFile.md
index 3907736373..340377c18a 100644
--- a/docs/zh/connectors/source/GcsFile.md
+++ b/docs/zh/connectors/source/GcsFile.md
@@ -75,9 +75,6 @@ import ChangeLog from '../changelog/connector-file-gcs.md';
| binary_complete_file_mode | boolean | 否 | false | 仅在 file_format_type 为
binary 时使用。是否将完整文件作为单个块读取,而不是分割成块。 |
| quote_char | string | 否 | `"` | CSV 引号字符。 |
| escape_char | string | 否 | - | CSV 转义字符。 |
-| date_format | string | 否 | yyyy-MM-dd | 解析 `Date` 列使用的格式。 |
-| datetime_format | string | 否 | yyyy-MM-dd HH:mm:ss | 解析 `Timestamp` 列使用的格式。 |
-| time_format | string | 否 | HH:mm:ss | 解析 `Time` 列使用的格式。 |
| sheet_name | string | 否 | - | 要读取的 Excel 工作表。 |
| excel_use_header_line | boolean | 否 | false | 使用 Excel 第一行作为表头按列名映射字段,仅在
file_format_type 为 excel 时使用。 |
| excel_engine | string | 否 | `POI` | Excel 读取器:`POI` 或 `EasyExcel`。 |
diff --git a/docs/zh/connectors/source/ObsFile.md
b/docs/zh/connectors/source/ObsFile.md
index 60526fc1f0..c2ed6519f1 100644
--- a/docs/zh/connectors/source/ObsFile.md
+++ b/docs/zh/connectors/source/ObsFile.md
@@ -104,6 +104,25 @@ import ChangeLog from '../changelog/connector-file-obs.md';
| escape_char | string | 否 | - | 用于在 CSV
字段内转义引号或其他特殊字符,使其不会结束字段。 |
| recursive_file_scan | boolean | 否 | true | 是否递归扫描子目录。
如果设置为 `false`,将忽略子目录,仅扫描指定路径下的文件。 |
| sort_files_by_modification_time | boolean | 否 | false |
是否按修改时间降序排序文件。启用此选项后,在读取不断演化的 schema 时可确保 schema 推断使用最新的文件。
|
+| enable_file_split | boolean | 否 | false | 开启文件切分功能。当
`file_format_type` 不支持切分或启用了压缩时,连接器会回退为不切分模式。 |
+| file_split_size | long | 否 | 134217728 |
`enable_file_split=true` 时的文件切分大小(字节),必须大于 0。对于文本类格式,切分点会对齐到下一个
`row_delimiter`。默认 128 MB。 |
+| excel_use_header_line | boolean | 否 | false | 使用 Excel
第一行作为列头进行按名称映射。仅在 `file_format_type` 为 `excel` 时生效。 |
+| markdown_rag_metadata_enabled | boolean | 否 | false | 读取
markdown 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `markdown` 时生效。 |
+| pdf_rag_metadata_enabled | boolean | 否 | false | 读取 PDF
文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `pdf` 时生效。 |
+| discovery_mode | string | 否 | once | 文件发现模式,支持
`once`(默认)和 `continuous`。continuous 模式会定期扫描路径,目前需要同时配置 `sync_mode=update` 和
`file_format_type=binary`。 |
+| scan_interval | string | 否 | 10S |
`discovery_mode=continuous` 的轮询间隔,支持 `10S` 等简写和 `PT10S` 等 ISO-8601 格式。 |
+| start_mode | string | 否 | earliest |
持续发现的初始扫描方式。`earliest` 会处理已有文件,`latest` 仅处理后续新增或变更。 |
+| sync_mode | string | 否 | full |
文件同步模式。`update` 会将源对象与 `target_path` 对比,只读取新增或变更对象,目前仅支持 binary 格式。 |
+| target_path | string | 否 | - |
`sync_mode=update` 时必填,通常应与 sink 的 `path` 一致。 |
+| target_hadoop_conf | map | 否 | - |
`sync_mode=update` 时可选的目标文件系统 Hadoop 配置。 |
+| update_strategy | string | 否 | distcp | update
模式的对比策略,支持 `distcp` 和 `strict`。 |
+| compare_mode | string | 否 | len_mtime | update
模式的对比方式,支持 `len_mtime` 和 `checksum`;checksum 需要 `update_strategy=strict`。 |
+| update_compare_parallelism | int | 否 | 8 |
目标对象元数据查询的最大并发数,有效范围为 `1-64`。 |
+| update_compare_bulk_threshold | int | 否 | 0 |
同一目标父目录的候选数达到正数阈值时改用一次目录枚举;`0` 表示关闭自动批量枚举。 |
+| post_sync_action | string | 否 | none | 持续发现对象完成
checkpoint 后的可选动作,支持 `none`、`delete` 和 `backup`。 |
+| backup_path | string | 否 | - |
`post_sync_action=backup` 时必填,且备份路径不能与源 `path` 重叠。 |
+| retention_max_age | string | 否 | - |
`backup_path` 中 SeaTunnel 备份对象的可选最大保留时间。 |
+| retention_check_interval | string | 否 | 1H |
配置备份保留策略时的清理扫描间隔。 |
### parse_partition_from_path [boolean]
@@ -429,6 +448,48 @@ PDF 特有的解析行为如下:
```
+## 持续发现
+
+`discovery_mode=continuous` 会让流式作业保持运行,并定期轮询 OBS 中的新增或变更对象。该模式使用现有文件对比逻辑,不消费
OBS 事件通知,也不会为对象删除或覆盖生成 changelog 行。
+
+持续发现目前需要同时配置 `file_format_type="binary"` 和 `sync_mode="update"`。`target_path`
应与 sink 的基础 `path` 一致,以便源端跳过未变化对象。默认的 `discovery_mode="once"` 会保持原有有界读取行为。
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ ObsFile {
+ path = "/watch/source"
+ bucket = "obs://obs-bucket-name"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxx"
+ endpoint = "obs.xxxxxx.myhuaweicloud.com"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ ObsFile {
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ bucket = "obs://obs-bucket-name"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxx"
+ endpoint = "obs.xxxxxx.myhuaweicloud.com"
+ file_format_type = "binary"
+ }
+}
+```
+
## 变更日志
diff --git a/docs/zh/connectors/source/OssFile.md
b/docs/zh/connectors/source/OssFile.md
index 71d9434079..276abfb580 100644
--- a/docs/zh/connectors/source/OssFile.md
+++ b/docs/zh/connectors/source/OssFile.md
@@ -216,6 +216,10 @@ schema {
| null_format | string | 否 | - | 当
`file_format_type` 为 `text` 或 `csv` 时使用。指定表示 null 的字段值。 对于配置了
`schema.columns[].defaultValue` 的 CSV,如果字段值匹配
`null_format`,或文件表头缺少该列,则使用配置的默认值。空 CSV 字段仍为 null,除非它与 `null_format`
匹配;未配置默认值的列保持原有行为。 CSV 默认值在创建读取器时转换为列类型。无法转换的默认值会导致作业失败,即使没有字段需要使用该默认值。DATE 和
TIMESTAMP 默认值可以使用与文件数据不同的受支持格式。 例如:`\N` |
| binary_chunk_size | int | 否 | 1024 |
仅在file_format_type为binary时使用。读取二进制文件的块大小(以字节为单位)。默认为1024字节。较大的值可能会提高大文件的性能,但会使用更多内存。
|
| binary_complete_file_mode | boolean | 否 | false |
仅在file_format_type为binary时使用。是否将完整文件作为单个块读取,而不是分割成块。启用时,整个文件内容将一次性读入内存。默认为false。
|
+| enable_file_split | boolean | 否 | false | 允许并行读取大型
text、JSON、CSV 和 Parquet 文件。格式不支持切分,或启用了文件压缩或归档压缩时,连接器按不切分的方式读取。 |
+| file_split_size | long | 否 | 134217728 |
`enable_file_split=true` 时的文件切分大小(字节),必须大于 0。对于文本类格式,切分点会对齐到下一个
`row_delimiter`。默认 128 MB。 |
+| markdown_rag_metadata_enabled | boolean | 否 | false | 读取
markdown 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `markdown` 时生效。 |
+| pdf_rag_metadata_enabled | boolean | 否 | false | 读取 PDF
文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `pdf` 时生效。 |
| discovery_mode | string | 否 | once | 文件发现模式,支持
`once`(默认)和 `continuous`。continuous 模式会定期扫描路径,目前需要同时配置 `sync_mode=update` 和
`file_format_type=binary`。 |
| scan_interval | string | 否 | 10S |
`discovery_mode=continuous` 的轮询间隔,支持 `10S` 等简写和 `PT10S` 等 ISO-8601 格式。 |
| start_mode | string | 否 | earliest |
持续发现的初始扫描方式。`earliest` 会处理已有文件,`latest` 仅处理后续新增或变更。 |
@@ -240,8 +244,6 @@ schema {
| metalake_type | string | 否 | gravitino | Metalake
服务类型,目前支持 `gravitino`。
|
| recursive_file_scan | boolean | 否 | true |
是否递归扫描子目录。 如果设置为 `false`,将忽略子目录,仅扫描指定路径下的文件。
|
| sort_files_by_modification_time | boolean | 否 | false |
是否按修改时间降序排序文件。启用此选项后,在读取不断演化的 schema 时可确保 schema 推断使用最新的文件。
|
-| enable_file_split | boolean | 否 | false | 仅当
file_format_type 为 text、json、csv 或 parquet
时使用。开启文件拆分功能。当文件非常大时,文件拆分允许单个文件被多个读取任务并行读取。
|
-| file_split_size | long | 否 | 134217728 | 仅在
`enable_file_split` 为 true 时使用。每个拆分的大小(字节),默认 128 MB(134217728)。
|
### compress_codec [string]
diff --git a/docs/zh/connectors/source/OssJindoFile.md
b/docs/zh/connectors/source/OssJindoFile.md
index e1916a109d..2d65256b61 100644
--- a/docs/zh/connectors/source/OssJindoFile.md
+++ b/docs/zh/connectors/source/OssJindoFile.md
@@ -96,7 +96,25 @@ import ChangeLog from
'../changelog/connector-file-oss-jindo.md';
| quote_char | string | 否 | " |
用于包裹 CSV 字段的单字符,可保证包含逗号、换行符或引号的字段被正确解析。 |
| escape_char | string | 否 | - | 用于在
CSV 字段内转义引号或其他特殊字符,使其不会结束字段。 |
| recursive_file_scan | boolean | 否 | true |
是否递归扫描子目录。 如果设置为 `false`,将忽略子目录,仅扫描指定路径下的文件。 |
-| sort_files_by_modification_time | boolean | 否 | false |
是否按修改时间降序排序文件。启用此选项后,在读取不断演化的 schema 时可确保 schema 推断使用最新的文件。
|
+| sort_files_by_modification_time | boolean | 否 | false |
是否按修改时间降序排序文件。启用此选项后,在读取不断演化的 schema 时可确保 schema 推断使用最新的文件。默认关闭,以避免大文件目录下的性能开销。
|
+| enable_file_split | boolean | 否 | false |
开启文件切分功能。当 `file_format_type` 不支持切分或启用了压缩时,连接器会回退为不切分模式。 |
+| file_split_size | long | 否 | 134217728 |
`enable_file_split=true` 时的文件切分大小(字节),必须大于 0。对于文本类格式,切分点会对齐到下一个
`row_delimiter`。默认 128 MB。 |
+| markdown_rag_metadata_enabled | boolean | 否 | false |
读取 markdown 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `markdown` 时生效。 |
+| pdf_rag_metadata_enabled | boolean | 否 | false | 读取
PDF 文件时追加面向 RAG 的元数据列。仅在 `file_format_type` 为 `pdf` 时生效。 |
+| discovery_mode | string | 否 | once |
文件发现模式,支持 `once`(默认)和 `continuous`。continuous 模式会定期扫描路径,目前需要同时配置
`sync_mode=update` 和 `file_format_type=binary`。 |
+| scan_interval | string | 否 | 10S |
`discovery_mode=continuous` 的轮询间隔,支持 `10S` 等简写和 `PT10S` 等 ISO-8601 格式。 |
+| start_mode | string | 否 | earliest |
持续发现的初始扫描方式。`earliest` 会处理已有文件,`latest` 仅处理后续新增或变更。 |
+| sync_mode | string | 否 | full |
文件同步模式。`update` 会将源对象与 `target_path` 对比,只读取新增或变更对象,目前仅支持 binary 格式。 |
+| target_path | string | 否 | - |
`sync_mode=update` 时必填,通常应与 sink 的 `path` 一致。 |
+| target_hadoop_conf | map | 否 | - |
`sync_mode=update` 时可选的目标文件系统 Hadoop 配置。 |
+| update_strategy | string | 否 | distcp |
update 模式的对比策略,支持 `distcp` 和 `strict`。 |
+| compare_mode | string | 否 | len_mtime |
update 模式的对比方式,支持 `len_mtime` 和 `checksum`;checksum 需要
`update_strategy=strict`。 |
+| update_compare_parallelism | int | 否 | 8 |
目标对象元数据查询的最大并发数,有效范围为 `1-64`。 |
+| update_compare_bulk_threshold | int | 否 | 0 |
同一目标父目录的候选数达到正数阈值时改用一次目录枚举;`0` 表示关闭自动批量枚举。 |
+| post_sync_action | string | 否 | none |
持续发现对象完成 checkpoint 后的可选动作,支持 `none`、`delete` 和 `backup`。 |
+| backup_path | string | 否 | - |
`post_sync_action=backup` 时必填,且备份路径不能与源 `path` 重叠。 |
+| retention_max_age | string | 否 | - |
`backup_path` 中 SeaTunnel 备份对象的可选最大保留时间。 |
+| retention_check_interval | string | 否 | 1H |
配置备份保留策略时的清理扫描间隔。 |
### path [string]
@@ -529,7 +547,7 @@ OssJindoFile {
file_format_type = "json"
schema {
fields {
- id = int
+ id = int
name = string
}
}
@@ -557,7 +575,7 @@ source {
}
}
sink {
- // you can transfer local file to s3/hdfs/oss etc.
+ // 可以将本地文件传输到 s3/hdfs/oss 等
OssJindoFile {
bucket = "oss://tyrantlucifer-image-bed"
access_key = "xxxxxxxxxxxxxxxxx"
@@ -586,7 +604,7 @@ source {
endpoint = "oss-cn-beijing.aliyuncs.com"
path = "/seatunnel/read/binary/"
file_format_type = "binary"
- // file example abcD2024.csv
+ // 文件示例 abcD2024.csv
file_filter_pattern = "abc[DX]*.*"
}
}
@@ -597,6 +615,48 @@ sink {
}
```
+## 持续发现
+
+`discovery_mode=continuous` 会让流式作业保持运行,并定期轮询 OSS 中的新增或变更对象。该模式使用现有文件对比逻辑,不消费
OSS 事件通知,也不会为对象删除或覆盖生成 changelog 行。
+
+持续发现目前需要同时配置 `file_format_type="binary"` 和 `sync_mode="update"`。`target_path`
应与 sink 的基础 `path` 一致,以便源端跳过未变化对象。默认的 `discovery_mode="once"` 会保持原有有界读取行为。
+
+```hocon
+env {
+ parallelism = 1
+ job.mode = "STREAMING"
+}
+
+source {
+ OssJindoFile {
+ path = "/watch/source"
+ bucket = "oss://tyrantlucifer-image-bed"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxxxxxxx"
+ endpoint = "oss-cn-beijing.aliyuncs.com"
+ file_format_type = "binary"
+
+ discovery_mode = "continuous"
+ scan_interval = "10S"
+ start_mode = "earliest"
+ sync_mode = "update"
+ target_path = "/watch/target"
+ }
+}
+
+sink {
+ OssJindoFile {
+ path = "/watch/target"
+ tmp_path = "/watch/tmp"
+ bucket = "oss://tyrantlucifer-image-bed"
+ access_key = "xxxxxxxxxxxxxxxxx"
+ access_secret = "xxxxxxxxxxxxxxxxxxxxxx"
+ endpoint = "oss-cn-beijing.aliyuncs.com"
+ file_format_type = "binary"
+ }
+}
+```
+
## 变更日志
<ChangeLog />
diff --git a/docs/zh/connectors/source/TiDB-CDC.md
b/docs/zh/connectors/source/TiDB-CDC.md
index d86d101543..b5567f794a 100644
--- a/docs/zh/connectors/source/TiDB-CDC.md
+++ b/docs/zh/connectors/source/TiDB-CDC.md
@@ -67,7 +67,6 @@ TiDB CDC 连接器通过 `tikv-client-java` 客户端与 TiKV 的 Placement Driv
| 名称 | 类型 | 必需 | 默认 | 描述
|
|-------------------------------|---------|----|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| url | String | 是 | - | 用于发现表元数据的 MySQL 兼容
JDBC URL,例如 `jdbc:mysql://tidb0:4000/inventory`。
|
-| driver | String | 否 | - | 用于发现表元数据的 JDBC
驱动类名,例如 `com.mysql.cj.jdbc.Driver`。
|
| username | String | 是 | - | 连接 TiDB 时使用的用户名。
|
| driver | String | 否 | - | 发现表元数据时使用的 JDBC
驱动类名,例如 `com.mysql.cj.jdbc.Driver`。本文档的示例中都显式配置了该参数。
|
| password | String | 是 | - | 连接 TiDB 时使用的密码。
|
diff --git a/docs/zh/transforms/embedding.md b/docs/zh/transforms/embedding.md
index 2769de3632..41beaa4b6f 100644
--- a/docs/zh/transforms/embedding.md
+++ b/docs/zh/transforms/embedding.md
@@ -17,7 +17,6 @@ Embedding 转换插件利用 embedding 模型将文本和多模态数据转换
| secret_key | string | 否 | - | 用于额外验证的密钥。仅
`AMAZON` 和 `QIANFAN` 需要此密钥。 |
| aws_region | string | 条件必填 | | 当 `model_provider`
为 `AMAZON`(Amazon Bedrock)时必填。 |
| single_vectorized_input_number | int | 否 | 1 |
单次请求向量化的输入数量。默认值为1。 |
-| process_batch_size | int | 否 | 100 |
每次处理的行批量大小(旧名称:`inference_batch_size`)。
| vectorization_fields | map | 是 | - |
输入字段和相应的输出向量字段之间的映射。 |
| model | string | 是 | - |
要使用的具体embedding模型。例如,如果提供商为OPENAI,可以指定 `text-embedding-3-small`。 |
| api_path | string | 否 | - |
embedding服务的API。通常由模型提供商提供。旧别名:`openai.api_path`。 |