This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/dev/pr-13284-03790b11ca9574ecdc8dc177b6b6a91d49ae833e in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit 8fc99c348e05b3e7be29d667feed992e97db80de Author: Jast <[email protected]> AuthorDate: Wed Nov 25 14:12:25 2026 +0000 [Docs] Fix broken FtpFile/LocalFile examples and align option table type cells between en and zh docs (#13284) Co-authored-by: jast <[email protected]> Co-authored-by: zhiwei.niu <[email protected]> --- docs/en/connectors/sink/HugeGraph.md | 4 +-- docs/en/connectors/sink/Paimon.md | 2 +- docs/en/connectors/sink/Socket.md | 4 +-- docs/en/connectors/source/FtpFile.md | 9 +++++ docs/en/connectors/source/Mqtt.md | 28 ++++++++-------- docs/zh/connectors/sink/Hudi.md | 16 ++++----- docs/zh/connectors/sink/Paimon.md | 32 +++++++++--------- docs/zh/connectors/source/FtpFile.md | 9 +++++ docs/zh/connectors/source/LocalFile.md | 1 + docs/zh/connectors/source/Notion.md | 28 ++++++++-------- docs/zh/connectors/source/OneSignal.md | 12 +++---- docs/zh/connectors/source/Opengauss-CDC.md | 54 +++++++++++++++--------------- 12 files changed, 109 insertions(+), 90 deletions(-) diff --git a/docs/en/connectors/sink/HugeGraph.md b/docs/en/connectors/sink/HugeGraph.md index 9e8568ebd1..8fb9e47fe7 100644 --- a/docs/en/connectors/sink/HugeGraph.md +++ b/docs/en/connectors/sink/HugeGraph.md @@ -95,7 +95,7 @@ Each `mappings` entry defines how input rows are mapped to one HugeGraph vertex | `enableLabelIndex` | String | No | - | Reserved label-index setting passed through the mapping config. | | `userdata` | `Map<String, Object>` | No | - | User-defined data associated with the label. | | `idStrategy` | String | For Vertex | - | The ID generation strategy for vertices, such as `PRIMARY_KEY`, `CUSTOMIZE_STRING`, `CUSTOMIZE_NUMBER`, `CUSTOMIZE_UUID`, or `AUTOMATIC`. | -| `idFields` | `List<string>` | For Vertex | - | A list of source field names used to generate the vertex ID. Required when `idStrategy` is not `AUTOMATIC`. | +| `idFields` | `List<String>` | For Vertex | - | A list of source field names used to generate the vertex ID. Required when `idStrategy` is not `AUTOMATIC`. | | `sourceConfig` | Object | For Edge | - | An object defining the mapping for the edge's source vertex. See `Source/Target Config` below. | | `targetConfig` | Object | For Edge | - | An object defining the mapping for the edge's target vertex. See `Source/Target Config` below. | | `frequency` | String | For Edge | - | The frequency of the edge, e.g., `SINGLE`, `MULTIPLE`. | @@ -130,7 +130,7 @@ Each `mappings` entry defines how input rows are mapped to one HugeGraph vertex | `enableLabelIndex` | String | No | - | Reserved label-index setting passed through the schema config. | | `userdata` | `Map<String, Object>` | No | - | User-defined data associated with the label. | | `idStrategy` | String | For Vertex | - | The ID generation strategy for vertices, such as `PRIMARY_KEY`, `CUSTOMIZE_STRING`, `CUSTOMIZE_NUMBER`, `CUSTOMIZE_UUID`, or `AUTOMATIC`. | -| `idFields` | `List<string>` | For Vertex | - | A list of source field names used to generate the vertex ID. | +| `idFields` | `List<String>` | For Vertex | - | A list of source field names used to generate the vertex ID. | | `sourceConfig` | Object | For Edge | - | An object defining the mapping for the edge's source vertex. See `Source/Target Config` below. | | `targetConfig` | Object | For Edge | - | An object defining the mapping for the edge's target vertex. See `Source/Target Config` below. | | `frequency` | String | For Edge | - | The frequency of the edge, e.g., `SINGLE`, `MULTIPLE`. | diff --git a/docs/en/connectors/sink/Paimon.md b/docs/en/connectors/sink/Paimon.md index 0989e96f5b..c4c633b7ee 100644 --- a/docs/en/connectors/sink/Paimon.md +++ b/docs/en/connectors/sink/Paimon.md @@ -95,7 +95,7 @@ libfb303-xxx.jar | paimon.hadoop.conf-path | String | No | - | The specified loading path for `core-site.xml`, `hdfs-site.xml`, and `hive-site.xml` files. | | paimon.table.non-primary-key | Boolean | No | false | Switch to create `table with PK` or `table without PK`. `true`: table without PK, `false`: table with PK. | | branch | String | No | - | The branch name of the Paimon table to write data to. If omitted, data is written to the main branch. For non-main branches, the main table and target branch must already exist, and `schema_save_mode=RECREATE_SCHEMA` or `data_save_mode=DROP_DATA` is not supported. | -| multi_table_sink_replica | int | No | 1 | The replica number of multi table sink writer. Use this when one upstream job writes to multiple Paimon tables and each table needs more than one sink writer. | +| multi_table_sink_replica | Int | No | 1 | The replica number of multi table sink writer. Use this when one upstream job writes to multiple Paimon tables and each table needs more than one sink writer. | ### table_options [Map] diff --git a/docs/en/connectors/sink/Socket.md b/docs/en/connectors/sink/Socket.md index bd05aef0c4..1faeb62388 100644 --- a/docs/en/connectors/sink/Socket.md +++ b/docs/en/connectors/sink/Socket.md @@ -33,8 +33,8 @@ own. | Name | Type | Required | Default | Description | |----------------|---------|----------|---------|-----------------------------------------------------------------------------------------------------------------| -| host | String | Yes | | socket server host | -| port | Integer | Yes | | socket server port | +| host | String | Yes | - | socket server host | +| port | Integer | Yes | - | socket server port | | max_retries | Integer | No | 3 | The number of retries to send record failed. Must be `>= 0`; set to `0` to fail immediately on the first write error. | | connect_timeout_ms | Integer | No | 10000 | Connect timeout in milliseconds. `0` disables the application-level timeout and leaves the OS default, which is what this connector used to do unconditionally. | | common-options | | No | - | Sink plugin common parameters, please refer to [Sink Common Options](../common-options/sink-common-options.md) for details | diff --git a/docs/en/connectors/source/FtpFile.md b/docs/en/connectors/source/FtpFile.md index cac8754085..33b55d6b1c 100644 --- a/docs/en/connectors/source/FtpFile.md +++ b/docs/en/connectors/source/FtpFile.md @@ -743,6 +743,10 @@ FtpFile { } } path = "/apps/hive/demo/student" + host = "192.168.31.48" + port = 21 + user = tyrantlucifer + password = tianchao file_format_type = "json" }, { @@ -753,8 +757,13 @@ FtpFile { } } path = "/apps/hive/demo/teacher" + host = "192.168.31.48" + port = 21 + user = tyrantlucifer + password = tianchao file_format_type = "json" } + ] } ``` diff --git a/docs/en/connectors/source/Mqtt.md b/docs/en/connectors/source/Mqtt.md index cdbc55ce0a..da12448cfa 100644 --- a/docs/en/connectors/source/Mqtt.md +++ b/docs/en/connectors/source/Mqtt.md @@ -39,20 +39,20 @@ The source uses MQTT auto-reconnect. If the client remains disconnected longer t | name | type | required | default value | description | |---------------------|---------|----------|---------------|------------------------------------------------------------------------------------------------------------------------| -| url | string | yes | - | MQTT broker URL, e.g. `tcp://localhost:1883`. | -| topic | string | yes | - | MQTT topic to subscribe messages from. | -| schema | config | yes | - | Output schema of the source. See [Schema Feature](../../introduction/concepts/schema-feature.md). | -| username | string | no | - | MQTT broker authentication username. Leave unset for anonymous access. | -| password | string | no | - | MQTT broker authentication password. Leave unset for anonymous access. | -| qos | int | no | 1 | MQTT subscribe QoS level. `0` is at-most-once, `1` is at-least-once. | -| format | string | no | json | Message deserialization format: `json` or `text`. | -| field_delimiter | string | no | , | Field delimiter used when `format=text`, e.g. `,`, `\|`, `\t`. | -| client_id | string | no | - | MQTT client id. Required when `clean_session=false`; generated automatically otherwise. | -| clean_session | boolean | no | true | Whether to use a clean MQTT session. | -| connection_timeout | int | no | 30 | MQTT connection timeout in seconds. | -| keep_alive_interval | int | no | 60 | MQTT keep alive interval in seconds. | -| reconnect_timeout | int | no | 120 | Maximum seconds to wait for MQTT auto-reconnect before failing the source. | -| max_queue_size | int | no | 1000 | Maximum number of MQTT messages buffered in memory before deserialization. | +| url | String | yes | - | MQTT broker URL, e.g. `tcp://localhost:1883`. | +| topic | String | yes | - | MQTT topic to subscribe messages from. | +| schema | Config | yes | - | Output schema of the source. See [Schema Feature](../../introduction/concepts/schema-feature.md). | +| username | String | no | - | MQTT broker authentication username. Leave unset for anonymous access. | +| password | String | no | - | MQTT broker authentication password. Leave unset for anonymous access. | +| qos | Int | no | 1 | MQTT subscribe QoS level. `0` is at-most-once, `1` is at-least-once. | +| format | String | no | json | Message deserialization format: `json` or `text`. | +| field_delimiter | String | no | , | Field delimiter used when `format=text`, e.g. `,`, `\|`, `\t`. | +| client_id | String | no | - | MQTT client id. Required when `clean_session=false`; generated automatically otherwise. | +| clean_session | Boolean | no | true | Whether to use a clean MQTT session. | +| connection_timeout | Int | no | 30 | MQTT connection timeout in seconds. | +| keep_alive_interval | Int | no | 60 | MQTT keep alive interval in seconds. | +| reconnect_timeout | Int | no | 120 | Maximum seconds to wait for MQTT auto-reconnect before failing the source. | +| max_queue_size | Int | no | 1000 | Maximum number of MQTT messages buffered in memory before deserialization. | | common-options | | no | - | Source plugin common parameters. See [Source Common Options](../common-options/source-common-options.md) for details. | :::tip diff --git a/docs/zh/connectors/sink/Hudi.md b/docs/zh/connectors/sink/Hudi.md index 3109518be6..004f1d5f73 100644 --- a/docs/zh/connectors/sink/Hudi.md +++ b/docs/zh/connectors/sink/Hudi.md @@ -35,7 +35,7 @@ SeaTunnel Hudi sink 会写入 Hudi 数据文件和 `.hoodie` 元数据,但不 |----------------------------|--------|----------|------------------------------|---------------------------------------------------------------------------------| | table_dfs_path | string | 是 | - | Hudi 表数据和元数据的根路径。 | | conf_files_path | string | 否 | - | HDFS 客户端配置文件的本地路径,多个路径用分号分隔。 | -| table_list | array | 否 | - | 多表作业中每张表的配置。 | +| table_list | Array | 否 | - | 多表作业中每张表的配置。 | | schema_save_mode | enum | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST | 作业启动前如何处理目标 schema。 | | data_save_mode | enum | 否 | APPEND_DATA | 作业启动前如何处理已存在的表数据。 | | multi_table_sink_replica | int | 否 | 1 | 多表写入模式下每张表写入器的副本数。 | @@ -52,15 +52,15 @@ SeaTunnel Hudi sink 会写入 Hudi 数据文件和 `.hoodie` 元数据,但不 | record_key_fields | string | 否 | - | 用于构建 Hudi record key 的字段;`UPSERT` 时必填。 | | partition_fields | string | 否 | - | 用于构建分区路径的字段。 | | precombine_field | string | 否 | - | 用于合并同一记录多次更新的字段。 | -| batch_interval_ms | int | 否 | 1000 | 当前未使用;刷写仅由 `batch_size` 或 checkpoint 触发。 | -| batch_size | int | 否 | 1000 | 刷写前最多缓存的行数。 | -| insert_shuffle_parallelism | int | 否 | 2 | insert 操作的 shuffle 并行度。 | -| upsert_shuffle_parallelism | int | 否 | 2 | upsert 操作的 shuffle 并行度。 | -| min_commits_to_keep | int | 否 | 20 | 清理期间保留的最小提交数。 | -| max_commits_to_keep | int | 否 | 30 | 清理期间保留的最大提交数。 | +| batch_interval_ms | Int | 否 | 1000 | 当前未使用;刷写仅由 `batch_size` 或 checkpoint 触发。 | +| batch_size | Int | 否 | 1000 | 刷写前最多缓存的行数。 | +| insert_shuffle_parallelism | Int | 否 | 2 | insert 操作的 shuffle 并行度。 | +| upsert_shuffle_parallelism | Int | 否 | 2 | upsert 操作的 shuffle 并行度。 | +| min_commits_to_keep | Int | 否 | 20 | 清理期间保留的最小提交数。 | +| max_commits_to_keep | Int | 否 | 30 | 清理期间保留的最大提交数。 | | index_type | enum | 否 | BLOOM | Hudi 索引类型:`BLOOM`、`SIMPLE` 或 `GLOBAL_BLOOM`。 | | index_class_name | string | 否 | - | 自定义 Hudi 索引类的全限定名。 | -| record_byte_size | int | 否 | 1024 | 以字节为单位的平均记录大小估计值。 | +| record_byte_size | Int | 否 | 1024 | 以字节为单位的平均记录大小估计值。 | | cdc_enabled | boolean | 否 | false | 启用后持久化 Hudi CDC 变更日志数据。 | 注意:写入单表时,可以把 `table_list` 中的表配置项平铺到外层。多表作业中,表级配置需放在各自的 `table_list` 条目内;`table_dfs_path`、`conf_files_path`、`schema_save_mode` 和 `data_save_mode` 保持在 sink 层级。 diff --git a/docs/zh/connectors/sink/Paimon.md b/docs/zh/connectors/sink/Paimon.md index 4ca9f161b5..34cfe3be39 100644 --- a/docs/zh/connectors/sink/Paimon.md +++ b/docs/zh/connectors/sink/Paimon.md @@ -70,32 +70,32 @@ libfb303-xxx.jar | 名称 | 类型 | 是否必须 | 默认值 | 描述 | |------------------------------|------|------|------------------------------|------------------------------------------------------------------------------------------------------| -| warehouse | 字符串 | 是 | - | warehouse 路径;REST catalog 使用托管 warehouse 名称,而不是存储路径。 | -| catalog_name | 字符串 | 否 | paimon | Paimon catalog名称 | -| catalog_type | 字符串 | 否 | filesystem | catalog 类型:`filesystem`、`hive` 或 `rest`。 | -| catalog_uri | 字符串 | `hive` 或 `rest` 时必填 | - | Hive metastore URI 或 REST catalog 服务端点。 | +| warehouse | String | 是 | - | warehouse 路径;REST catalog 使用托管 warehouse 名称,而不是存储路径。 | +| catalog_name | String | 否 | paimon | Paimon catalog名称 | +| catalog_type | String | 否 | filesystem | catalog 类型:`filesystem`、`hive` 或 `rest`。 | +| catalog_uri | String | `hive` 或 `rest` 时必填 | - | Hive metastore URI 或 REST catalog 服务端点。 | | token.provider | String | `rest` 时必填 | - | 认证提供者:仅小写 `bear` 或 `dlf`。 | | token | String | `bear` 时必填 | - | Bearer token。 | | dlf.access-key-id | String | `dlf` 时必填 | - | DLF access key ID。 | | dlf.access-key-secret | String | `dlf` 时必填 | - | DLF access key secret。 | | dlf.security-token | String | 否 | - | 可选的临时 DLF security token。 | | dlf.region | String | 否 | - | DLF region;未配置时从 `catalog_uri` 推断。 | -| database | 字符串 | 是 | - | 数据库名称,不能为空白字符串。 | -| table | 字符串 | 是 | - | 表名,不能为空白字符串。 | -| user | 字符串 | 否 | - | paimon开启权限后,用户名 | -| password | 字符串 | 否 | - | paimon开启权限后,用户名对应密码 | -| hdfs_site_path | 字符串 | 否 | - | 已废弃。hdfs-site.xml 文件路径。新作业建议使用 `paimon.hadoop.conf` 或 `paimon.hadoop.conf-path` | -| schema_save_mode | 枚举 | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST | Schema保存模式 | -| data_save_mode | 枚举 | 否 | APPEND_DATA | 数据保存模式 | -| paimon.table.primary-keys | 字符串 | 否 | - | 主键字段列表,联合主键使用逗号分隔(注意:分区字段需要包含在主键字段中) | -| paimon.table.partition-keys | 字符串 | 否 | - | 分区字段列表,多字段使用逗号分隔 | +| database | String | 是 | - | 数据库名称,不能为空白字符串。 | +| table | String | 是 | - | 表名,不能为空白字符串。 | +| user | String | 否 | - | paimon开启权限后,用户名 | +| password | String | 否 | - | paimon开启权限后,用户名对应密码 | +| hdfs_site_path | String | 否 | - | 已废弃。hdfs-site.xml 文件路径。新作业建议使用 `paimon.hadoop.conf` 或 `paimon.hadoop.conf-path` | +| schema_save_mode | Enum | 否 | CREATE_SCHEMA_WHEN_NOT_EXIST | Schema保存模式 | +| data_save_mode | Enum | 否 | APPEND_DATA | 数据保存模式 | +| paimon.table.primary-keys | String | 否 | - | 主键字段列表,联合主键使用逗号分隔(注意:分区字段需要包含在主键字段中) | +| paimon.table.partition-keys | String | 否 | - | 分区字段列表,多字段使用逗号分隔 | | paimon.table.write-props | Map | 否 | - | Paimon表初始化指定的属性, [参考](https://paimon.apache.org/docs/master/maintenance/configurations/#coreoptions) | | table_options | Map | 否 | - | Sink 侧表属性,仅用于 SaveMode 自动建表(不进入运行时 write-props)。详见下文。 | | paimon.hadoop.conf | Map | 否 | - | Hadoop配置文件属性信息 | -| paimon.hadoop.conf-path | 字符串 | 否 | - | Hadoop配置文件目录,用于加载'core-site.xml', 'hdfs-site.xml', 'hive-site.xml'文件配置 | +| paimon.hadoop.conf-path | String | 否 | - | Hadoop配置文件目录,用于加载'core-site.xml', 'hdfs-site.xml', 'hive-site.xml'文件配置 | | paimon.table.non-primary-key | Boolean | 否 | false | 控制创建主键表或者非主键表. 当为true时,创建非主键表, 为false时,创建主键表 | -| branch | 字符串 | 否 | - | 要写入数据的 Paimon 表分支名称。不配置时写入 main 分支。非 main 分支要求 main 表和目标分支已存在,且不支持 `schema_save_mode=RECREATE_SCHEMA` 或 `data_save_mode=DROP_DATA`。 | -| multi_table_sink_replica | int | 否 | 1 | 多表写入模式下每张表的 writer 副本数。当一个上游作业写入多张 Paimon 表、且每张表需要多个 sink writer 时使用。 | +| branch | String | 否 | - | 要写入数据的 Paimon 表分支名称。不配置时写入 main 分支。非 main 分支要求 main 表和目标分支已存在,且不支持 `schema_save_mode=RECREATE_SCHEMA` 或 `data_save_mode=DROP_DATA`。 | +| multi_table_sink_replica | Int | 否 | 1 | 多表写入模式下每张表的 writer 副本数。当一个上游作业写入多张 Paimon 表、且每张表需要多个 sink writer 时使用。 | ### table_options [Map] diff --git a/docs/zh/connectors/source/FtpFile.md b/docs/zh/connectors/source/FtpFile.md index 62fa705239..300c4635fc 100644 --- a/docs/zh/connectors/source/FtpFile.md +++ b/docs/zh/connectors/source/FtpFile.md @@ -714,6 +714,10 @@ FtpFile { } } path = "/apps/hive/demo/student" + host = "192.168.31.48" + port = 21 + user = tyrantlucifer + password = tianchao file_format_type = "json" }, { @@ -724,8 +728,13 @@ FtpFile { } } path = "/apps/hive/demo/teacher" + host = "192.168.31.48" + port = 21 + user = tyrantlucifer + password = tianchao file_format_type = "json" } + ] } ``` diff --git a/docs/zh/connectors/source/LocalFile.md b/docs/zh/connectors/source/LocalFile.md index 7a8683e601..d4697a8c86 100644 --- a/docs/zh/connectors/source/LocalFile.md +++ b/docs/zh/connectors/source/LocalFile.md @@ -754,6 +754,7 @@ LocalFile { path = "/apps/hive/demo/teacher" file_format_type = "json" } + ] } ``` diff --git a/docs/zh/connectors/source/Notion.md b/docs/zh/connectors/source/Notion.md index 3ce90cefc1..b14cd742fb 100644 --- a/docs/zh/connectors/source/Notion.md +++ b/docs/zh/connectors/source/Notion.md @@ -34,20 +34,20 @@ Notion 源连接器用于读取 Notion API 数据。它基于 HTTP 源连接器 | content_field | String | 否 | - | 在 `schema` 解析之前先通过 JSONPath 抽取一段 JSON。 | | json_field | Config | 否 | - | 字段级 JSONPath 映射,与 `schema` 配合使用。 | | pageing | Config | 否 | - | HTTP 分页配置,继承自 HTTP 源连接器。当前 Notion 读取路径不会应用该配置:不会自动进行游标或页码分页,只读取响应的第一页数据;如需读取更多页(例如配合 `start_cursor` 参数),请在连接器外部自行处理。 | -| poll_interval_millis | int | 否 | - | 流模式下的请求间隔(毫秒)。Notion 源连接器当前只支持批处理模式。 | -| retry | int | 否 | - | HTTP 请求返回 `IOException` 时的最大重试次数。 | -| retry_backoff_multiplier_ms | int | 否 | 100 | HTTP 请求失败时的重试退避倍数(毫秒)。 | -| retry_backoff_max_ms | int | 否 | 10000 | HTTP 请求失败时的最大重试退避时间(毫秒)。 | -| enable_multi_lines | boolean | 否 | false | 是否启用多行模式,将响应体中按换行分隔的多个 JSON 对象视为独立记录。 | -| keep_params_as_form | boolean | 否 | false | 是否将请求参数作为表单参数发送,而不是 URL 查询参数。 | -| keep_page_param_as_http_param | boolean | 否 | false | 分页时是否将分页参数保留在 URL 中,而不是在请求体内替换。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | -| batch_size | int | 否 | 100 | 当总页数未知时,每次请求返回的记录数。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | -| start_page_number | long | 否 | 1 | 从哪一页开始读取。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | -| total_page_size | long | 否 | 0 | 要读取的总页数。`0` 表示按照 `batch_size` 一直读取,直到 API 不再返回新页。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | -| use_placeholder_replacement | boolean | 否 | false | 是否使用 `${field}` 占位符替换 headers、params 和 body 中的字段值,否则按键名替换。 | -| connect_timeout_ms | int | 否 | 12000 | HTTP 连接超时时间(毫秒),默认 12000ms。 | -| socket_timeout_ms | int | 否 | 60000 | HTTP 套接字超时时间(毫秒),默认 60000ms。 | -| json_filed_missed_return_null | boolean | 否 | false | 配置的 JSON 字段缺失时是否返回 `null`,否则报错。 | +| poll_interval_millis | Int | 否 | - | 流模式下的请求间隔(毫秒)。Notion 源连接器当前只支持批处理模式。 | +| retry | Int | 否 | - | HTTP 请求返回 `IOException` 时的最大重试次数。 | +| retry_backoff_multiplier_ms | Int | 否 | 100 | HTTP 请求失败时的重试退避倍数(毫秒)。 | +| retry_backoff_max_ms | Int | 否 | 10000 | HTTP 请求失败时的最大重试退避时间(毫秒)。 | +| enable_multi_lines | Boolean | 否 | false | 是否启用多行模式,将响应体中按换行分隔的多个 JSON 对象视为独立记录。 | +| keep_params_as_form | Boolean | 否 | false | 是否将请求参数作为表单参数发送,而不是 URL 查询参数。 | +| keep_page_param_as_http_param | Boolean | 否 | false | 分页时是否将分页参数保留在 URL 中,而不是在请求体内替换。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | +| batch_size | Int | 否 | 100 | 当总页数未知时,每次请求返回的记录数。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | +| start_page_number | Long | 否 | 1 | 从哪一页开始读取。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | +| total_page_size | Long | 否 | 0 | 要读取的总页数。`0` 表示按照 `batch_size` 一直读取,直到 API 不再返回新页。该配置在当前 Notion 读取路径上不会生效(参见 `pageing`)。 | +| use_placeholder_replacement | Boolean | 否 | false | 是否使用 `${field}` 占位符替换 headers、params 和 body 中的字段值,否则按键名替换。 | +| connect_timeout_ms | Int | 否 | 12000 | HTTP 连接超时时间(毫秒),默认 12000ms。 | +| socket_timeout_ms | Int | 否 | 60000 | HTTP 套接字超时时间(毫秒),默认 60000ms。 | +| json_filed_missed_return_null | Boolean | 否 | false | 配置的 JSON 字段缺失时是否返回 `null`,否则报错。 | | common-options | config | 否 | - | 源插件通用参数,详见 [源通用选项](../common-options/source-common-options.md)。 | :::tip diff --git a/docs/zh/connectors/source/OneSignal.md b/docs/zh/connectors/source/OneSignal.md index 96d746c810..a9f13996e2 100644 --- a/docs/zh/connectors/source/OneSignal.md +++ b/docs/zh/connectors/source/OneSignal.md @@ -35,12 +35,12 @@ OneSignal 源连接器用于从 OneSignal 的 REST API 读取数据。它基于 | json_field | Config | 否 | - | 字段级 JSONPath 映射,与 `schema` 配合使用。 | | content_field | String | 否 | - | 在 `schema` 解析之前先通过 JSONPath 抽取一段 JSON,例如 `$.players[*]` 可展开列表响应。 | | pageing | Config | 否 | - | HTTP 分页配置,继承自 HTTP 源连接器。对 OneSignal 当前不生效:连接器创建的读取器不带分页能力,任务每次请求只读取单次响应。 | -| poll_interval_millis | int | 否 | - | 流式任务下两次请求之间的间隔(毫秒)。批模式下连接器读取一次后即结束。 | -| retry | int | 否 | - | HTTP 请求返回 `IOException` 时的最大重试次数。 | -| retry_backoff_multiplier_ms | int | 否 | 100 | HTTP 请求失败时的重试退避倍数(毫秒)。 | -| retry_backoff_max_ms | int | 否 | 10000 | HTTP 请求失败时的最大重试退避时间(毫秒)。 | -| enable_multi_lines | boolean | 否 | false | 是否启用多行模式,将响应体中按换行分隔的多个 JSON 对象视为独立记录。 | -| json_filed_missed_return_null | boolean | 否 | false | 配置的 JSON 字段缺失时是否返回 `null`,否则报错。 | +| poll_interval_millis | Int | 否 | - | 流式任务下两次请求之间的间隔(毫秒)。批模式下连接器读取一次后即结束。 | +| retry | Int | 否 | - | HTTP 请求返回 `IOException` 时的最大重试次数。 | +| retry_backoff_multiplier_ms | Int | 否 | 100 | HTTP 请求失败时的重试退避倍数(毫秒)。 | +| retry_backoff_max_ms | Int | 否 | 10000 | HTTP 请求失败时的最大重试退避时间(毫秒)。 | +| enable_multi_lines | Boolean | 否 | false | 是否启用多行模式,将响应体中按换行分隔的多个 JSON 对象视为独立记录。 | +| json_filed_missed_return_null | Boolean | 否 | false | 配置的 JSON 字段缺失时是否返回 `null`,否则报错。 | | common-options | config | 否 | - | 源插件通用参数,详见 [源通用选项](../common-options/source-common-options.md)。 | ## 使用提示 diff --git a/docs/zh/connectors/source/Opengauss-CDC.md b/docs/zh/connectors/source/Opengauss-CDC.md index 45b487eb28..5031be0ac6 100644 --- a/docs/zh/connectors/source/Opengauss-CDC.md +++ b/docs/zh/connectors/source/Opengauss-CDC.md @@ -69,35 +69,35 @@ select 'ALTER TABLE ' || schemaname || '.' || tablename || ' REPLICA IDENTITY FU | Name | Type | Required | Default | Description | |-------------------------------------------|------|----------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| url | 字符串 | 是 | - | JDBC连接的URL. 参考: `jdbc:postgresql://localhost:5432/postgres_cdc?loggerLevel=OFF`. | -| username | 字符串 | 是 | - | 连接数据库的用户名 | -| password | 字符串 | 是 | - | 连接数据库的密码 | -| database-names | 列表 | 否 | - | 需要监控的数据库名称。 | +| url | String | 是 | - | JDBC连接的URL. 参考: `jdbc:postgresql://localhost:5432/postgres_cdc?loggerLevel=OFF`. | +| username | String | 是 | - | 连接数据库的用户名 | +| password | String | 是 | - | 连接数据库的密码 | +| database-names | List | 否 | - | 需要监控的数据库名称。 | | schema-name | 列表 | 否 | - | 需要监控的数据库 Schema 名称,例如:`["inventory"]`。 [...] -| table-names | 列表 | 二选一 | - | 需要监控的表。请使用完整的 `database.schema.table` 格式,例如:`opengauss_cdc.inventory.orders`。 | -| table-pattern | 字符串 | 二选一 | - | 需要监控的表名正则表达式。正则需要匹配完整表名,例如:`opengauss_cdc\\.inventory\\..*`。`table-names` 和 `table-pattern` 互斥。 | -| table-names-config | 列表 | 否 | - | 表级配置列表。例如:`[{"table": "db1.schema1.table1","primaryKeys": ["key1"],"snapshotSplitColumn": "key2"}]`。无物理主键表可通过 `primaryKeys` 指定唯一键。`snapshotSplitColumn` 必须是唯一键,否则 SeaTunnel 会忽略该配置并自动选择拆分列。 | -| startup.mode | 枚举 | 否 | INITIAL | Opengauss CDC消费者的可选启动模式,有效枚举为 `initial`、`snapshot-only`、`earliest` 和 `latest`。<br/> `initial`: 启动时同步历史数据,然后同步增量数据。<br/> `snapshot-only`: 仅同步启动时的历史数据,然后以有界任务结束,不进入 WAL 流读取。从 checkpoint 恢复时只读取 checkpoint 中记录的表,与 [PostgreSQL CDC](PostgreSQL-CDC.md#仅运行一次性快照) 相同。<br/> `earliest`: 从可能的最早偏移量启动。<br/> `latest`: 从最新偏移量启动。<br/> `committed-offset` 仅 PostgreSQL 支持(它读取 OpenGauss 不提供的 `pg_replication_slots` 列),该连接器会在配置校验阶段拒绝此值。 [...] -| stop.mode | 枚举 | 否 | NEVER | Opengauss CDC 消费者的可选停止模式。唯一有效的枚举值是 `never`:一旦进入增量阶段,数据源会持续读取 WAL 变更,不会自行停止。 | -| snapshot.split.size | 整型 | 否 | 8096 | 表快照的分割大小(行数),在读取表的快照时,捕获的表被分割成多个split | -| snapshot.fetch.size | 整型 | 否 | 1024 | 读取表快照时,每次轮询的最大读取大小 | -| incremental.parallelism | 整型 | 否 | 1 | 增量阶段并行读取器的数量 | -| enable_concurrent_read | 布尔 | 否 | true | 快照阶段是否启用分片并发读取。设置为 false 时,源会以单个分片读取表,不做分片分析,适用于没有索引的表 | -| slot.name | 字符串 | 否 | seatunnel | Opengauss 逻辑解码槽名称。同一个 Opengauss 实例上如果有多个 CDC 任务,请为每个任务配置不同的 `slot.name`。 | -| decoding.plugin.name | 字符串 | 否 | pgoutput | 安装在服务器上的Postgres逻辑解码插件的名称,支持的值是decoderbufs、wal2json、wal2json_rds、wal2json_streaming、wal2json_rds_streaming和pgoutput | -| require-replica-identity-full | 布尔 | 否 | true | 要求表设置 REPLICA IDENTITY FULL。设置为 false 时允许其他 replica identity 的表,但 UPDATE/DELETE 事件可能不包含变更前的数据,仅建议用于只追加写入的表(例如 outbox 模式)。默认值 true 以保持向后兼容。 | -| server-time-zone | 字符串 | 否 | JVM 系统时区 | 数据库服务器中的会话时区。如果没有设置,则使用ZoneId.systemDefault()来确定服务器的时区 | +| table-names | List | 二选一 | - | 需要监控的表。请使用完整的 `database.schema.table` 格式,例如:`opengauss_cdc.inventory.orders`。 | +| table-pattern | String | 二选一 | - | 需要监控的表名正则表达式。正则需要匹配完整表名,例如:`opengauss_cdc\\.inventory\\..*`。`table-names` 和 `table-pattern` 互斥。 | +| table-names-config | List | 否 | - | 表级配置列表。例如:`[{"table": "db1.schema1.table1","primaryKeys": ["key1"],"snapshotSplitColumn": "key2"}]`。无物理主键表可通过 `primaryKeys` 指定唯一键。`snapshotSplitColumn` 必须是唯一键,否则 SeaTunnel 会忽略该配置并自动选择拆分列。 | +| startup.mode | Enum | 否 | INITIAL | Opengauss CDC消费者的可选启动模式,有效枚举为 `initial`、`snapshot-only`、`earliest` 和 `latest`。<br/> `initial`: 启动时同步历史数据,然后同步增量数据。<br/> `snapshot-only`: 仅同步启动时的历史数据,然后以有界任务结束,不进入 WAL 流读取。从 checkpoint 恢复时只读取 checkpoint 中记录的表,与 [PostgreSQL CDC](PostgreSQL-CDC.md#仅运行一次性快照) 相同。<br/> `earliest`: 从可能的最早偏移量启动。<br/> `latest`: 从最新偏移量启动。<br/> `committed-offset` 仅 PostgreSQL 支持(它读取 OpenGauss 不提供的 `pg_replication_slots` 列),该连接器会在配置校验阶段拒绝此值。 [...] +| stop.mode | Enum | 否 | NEVER | Opengauss CDC 消费者的可选停止模式。唯一有效的枚举值是 `never`:一旦进入增量阶段,数据源会持续读取 WAL 变更,不会自行停止。 | +| snapshot.split.size | Integer | 否 | 8096 | 表快照的分割大小(行数),在读取表的快照时,捕获的表被分割成多个split | +| snapshot.fetch.size | Integer | 否 | 1024 | 读取表快照时,每次轮询的最大读取大小 | +| incremental.parallelism | Integer | 否 | 1 | 增量阶段并行读取器的数量 | +| enable_concurrent_read | Boolean | 否 | true | 快照阶段是否启用分片并发读取。设置为 false 时,源会以单个分片读取表,不做分片分析,适用于没有索引的表 | +| slot.name | String | 否 | seatunnel | Opengauss 逻辑解码槽名称。同一个 Opengauss 实例上如果有多个 CDC 任务,请为每个任务配置不同的 `slot.name`。 | +| decoding.plugin.name | String | 否 | pgoutput | 安装在服务器上的Postgres逻辑解码插件的名称,支持的值是decoderbufs、wal2json、wal2json_rds、wal2json_streaming、wal2json_rds_streaming和pgoutput | +| require-replica-identity-full | Boolean | 否 | true | 要求表设置 REPLICA IDENTITY FULL。设置为 false 时允许其他 replica identity 的表,但 UPDATE/DELETE 事件可能不包含变更前的数据,仅建议用于只追加写入的表(例如 outbox 模式)。默认值 true 以保持向后兼容。 | +| server-time-zone | String | 否 | JVM 系统时区 | 数据库服务器中的会话时区。如果没有设置,则使用ZoneId.systemDefault()来确定服务器的时区 | | connect.timeout.ms | Long | 否 | 30000 | 在尝试连接数据库服务器之后,连接器在超时之前应该等待的最大时间 | -| connect.max-retries | 整型 | 否 | 3 | 连接器在建立数据库服务器连接时应该重试的最大次数 | -| connection.pool.size | 整型 | 否 | 20 | jdbc连接池的大小 | -| chunk-key.even-distribution.factor.upper-bound | 双浮点型 | 否 | 100 | chunk的key分布因子的上界。该因子用于确定表数据是否均匀分布。如果分布因子被计算为小于或等于这个上界(即(MAX(id) - MIN(id) + 1) /行数),表的所有chunk将被优化以达到均匀分布。否则,如果分布因子更大,则认为表分布不均匀,如果估计的分片数量超过`sample-sharding.threshold`指定的值,则将使用基于采样的分片策略。默认值为100.0。 | -| chunk-key.even-distribution.factor.lower-bound | 双浮点型 | 否 | 0.05 | chunk的key分布因子的下界。该因子用于确定表数据是否均匀分布。如果分布因子的计算结果大于或等于这个下界(即(MAX(id) - MIN(id) + 1) /行数),那么表的所有块将被优化以达到均匀分布。否则,如果分布因子较小,则认为表分布不均匀,如果估计的分片数量超过`sample-sharding.threshold`指定的值,则使用基于采样的分片策略。缺省值为0.05。 | -| sample-sharding.threshold | 整型 | 否 | 1000 | 此配置指定了用于触发采样分片策略的估计分片数的阈值。当分布因子超出了由`chunk-key.even-distribution.factor.upper-bound `和`chunk-key.even-distribution.factor.lower-bound`,并且估计的分片计数(以近似的行数/块大小计算)超过此阈值,则将使用样本分片策略。这有助于更有效地处理大型数据集。默认值为1000个分片。 | -| inverse-sampling.rate | 整型 | 否 | 1000 | 采样分片策略中使用的采样率的倒数。例如,如果该值设置为1000,则意味着在采样过程中应用了1/1000的采样率。该选项提供了控制采样粒度的灵活性,从而影响最终的分片数量。当处理非常大的数据集时,它特别有用,其中首选较低的采样率。缺省值为1000。 | -| split.allow-sampling | 布尔 | 否 | true | 是否允许使用基于采样的分片策略。当设置为 false 时,无论预估分片数是否超过阈值,系统都会回退到非均匀分片方式(迭代查询方式)。默认值为 true。 | -| exactly_once | 布尔 | 否 | false | 在快照阶段启用精确一次语义。仅当 `startup.mode` 为 `initial` 或 `snapshot-only` 时可用。 | -| format | 枚举 | 否 | DEFAULT | Opengauss CDC可选的输出格式, 有效的枚举是`DEFAULT`, `COMPATIBLE_DEBEZIUM_JSON`. | -| debezium | 配置 | 否 | - | 将 [Debezium的属性](https://github.com/debezium/debezium/blob/v1.9.8.Final/documentation/modules/ROOT/pages/connectors/postgresql.adoc#connector-configuration-properties) 传递到Debezium嵌入式引擎,该引擎用于捕获来自Opengauss服务的数据更改 | +| connect.max-retries | Integer | 否 | 3 | 连接器在建立数据库服务器连接时应该重试的最大次数 | +| connection.pool.size | Integer | 否 | 20 | jdbc连接池的大小 | +| chunk-key.even-distribution.factor.upper-bound | Double | 否 | 100 | chunk的key分布因子的上界。该因子用于确定表数据是否均匀分布。如果分布因子被计算为小于或等于这个上界(即(MAX(id) - MIN(id) + 1) /行数),表的所有chunk将被优化以达到均匀分布。否则,如果分布因子更大,则认为表分布不均匀,如果估计的分片数量超过`sample-sharding.threshold`指定的值,则将使用基于采样的分片策略。默认值为100.0。 | +| chunk-key.even-distribution.factor.lower-bound | Double | 否 | 0.05 | chunk的key分布因子的下界。该因子用于确定表数据是否均匀分布。如果分布因子的计算结果大于或等于这个下界(即(MAX(id) - MIN(id) + 1) /行数),那么表的所有块将被优化以达到均匀分布。否则,如果分布因子较小,则认为表分布不均匀,如果估计的分片数量超过`sample-sharding.threshold`指定的值,则使用基于采样的分片策略。缺省值为0.05。 | +| sample-sharding.threshold | Integer | 否 | 1000 | 此配置指定了用于触发采样分片策略的估计分片数的阈值。当分布因子超出了由`chunk-key.even-distribution.factor.upper-bound `和`chunk-key.even-distribution.factor.lower-bound`,并且估计的分片计数(以近似的行数/块大小计算)超过此阈值,则将使用样本分片策略。这有助于更有效地处理大型数据集。默认值为1000个分片。 | +| inverse-sampling.rate | Integer | 否 | 1000 | 采样分片策略中使用的采样率的倒数。例如,如果该值设置为1000,则意味着在采样过程中应用了1/1000的采样率。该选项提供了控制采样粒度的灵活性,从而影响最终的分片数量。当处理非常大的数据集时,它特别有用,其中首选较低的采样率。缺省值为1000。 | +| split.allow-sampling | Boolean | 否 | true | 是否允许使用基于采样的分片策略。当设置为 false 时,无论预估分片数是否超过阈值,系统都会回退到非均匀分片方式(迭代查询方式)。默认值为 true。 | +| exactly_once | Boolean | 否 | false | 在快照阶段启用精确一次语义。仅当 `startup.mode` 为 `initial` 或 `snapshot-only` 时可用。 | +| format | Enum | 否 | DEFAULT | Opengauss CDC可选的输出格式, 有效的枚举是`DEFAULT`, `COMPATIBLE_DEBEZIUM_JSON`. | +| debezium | Config | 否 | - | 将 [Debezium的属性](https://github.com/debezium/debezium/blob/v1.9.8.Final/documentation/modules/ROOT/pages/connectors/postgresql.adoc#connector-configuration-properties) 传递到Debezium嵌入式引擎,该引擎用于捕获来自Opengauss服务的数据更改 | | common-options | | 否 | - | 源码插件通用参数, 请参考[Source Common Options](../common-options/source-common-options.md)获取详情 | ## 任务示例
