Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/connectors/source/OssJindoFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ It only supports hadoop version **2.9.X+**.
| compress_codec | string | no | none | The compression codec used when reading files. |
| archive_compress_codec | string | no | none | The archive compression codec used when reading archive files. |
| encoding | string | no | UTF-8 | The character encoding used when reading `json`, `text`, `csv` or `xml` files. |
| null_format | string | no | - | Only used in `text` format; specifies the string that should be parsed as `null`. |
| null_format | string | no | - | Only used when `file_format_type` is `text` or `csv`; specifies the string that should be parsed as `null`. |
| 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 it into chunks. |
| common-options | | no | - | Source plugin common parameters, please refer to [Source Common Options](../common-options/source-common-options.md) for details. |
Expand Down
2 changes: 1 addition & 1 deletion docs/en/engines/zeta/hybrid-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ seatunnel:
job-schedule-strategy: WAIT
```

When `dynamic-slot: true` is used, the `job-schedule-strategy: WAIT` configuration will become invalid and will be forcibly changed to `job-schedule-strategy: REJECT`, because this parameter is meaningless in dynamic slots.
The `job-schedule-strategy` configuration is applied regardless of `dynamic-slot`. When resources are insufficient, `WAIT` keeps the job pending and retries the scheduling every 3 seconds, while `REJECT` fails the job immediately.

### 4.7 Coordinator Service

Expand Down
2 changes: 1 addition & 1 deletion docs/en/engines/zeta/separated-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ seatunnel:
engine:
job-schedule-strategy: WAIT
```
When `dynamic-slot: true` is used, the `job-schedule-strategy: WAIT` configuration will become invalid and will be forcibly changed to `job-schedule-strategy: REJECT`, because this parameter is meaningless in dynamic slots.
The `job-schedule-strategy` configuration is applied regardless of `dynamic-slot`. When resources are insufficient, `WAIT` keeps the job pending and retries the scheduling every 3 seconds, while `REJECT` fails the job immediately.


### 4.8 Coordinator Service
Expand Down
2 changes: 1 addition & 1 deletion docs/en/engines/zeta/tuning-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ grep "SlowOperationDetector" "$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log | tai

Correlate the timestamps with:
- Job submission events (REST API calls)
- Checkpoint intervals (every 5 minutes by default, `seatunnel.engine.checkpoint.interval`)
- Checkpoint intervals (the engine default is 300000 ms; the shipped `config/seatunnel.yaml` template sets `checkpoint.interval: 10000`)
- High-load periods (peak data ingestion)

#### Step 2: Check overall node health
Expand Down
9 changes: 9 additions & 0 deletions docs/zh/architecture/engine/dag-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,15 @@ sink {
- [架构概述](../overview.md)

## 12. 参考资料

### 关键源码文件

- [LogicalDag.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/logical/LogicalDag.java)
- [PhysicalPlan.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalPlan.java)
- [SubPlan.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/SubPlan.java)
- [PhysicalVertex.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalVertex.java)
- [TaskGroupDefaultImpl.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/execution/TaskGroupDefaultImpl.java)

### 进一步阅读

- [Google Borg Paper](https://research.google/pubs/pub43438/) - 任务调度灵感
Expand Down
7 changes: 7 additions & 0 deletions docs/zh/architecture/engine/engine-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,13 @@ env {
- [DAG 执行](dag-execution.md)

## 10. 参考资料

### 关键源码文件

- 引擎核心:`seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/`
- DAG:`seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/`
- 检查点:`seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/`

### 进一步阅读

- [Hazelcast IMDG](https://docs.hazelcast.com/imdg/latest/)
Expand Down
6 changes: 6 additions & 0 deletions docs/zh/architecture/fault-tolerance/checkpoint-mechanism.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ seatunnel:

## 9. 参考资料

### 关键源码文件

- [CheckpointCoordinator.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/CheckpointCoordinator.java)
- [PendingCheckpoint.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/PendingCheckpoint.java)
- [CheckpointStorage.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-storage/checkpoint-storage-api/src/main/java/org/apache/seatunnel/engine/checkpoint/storage/api/CheckpointStorage.java)

### 学术论文

- Chandy, K. M., & Lamport, L. (1985). ["Distributed Snapshots: Determining Global States of Distributed Systems"](https://lamport.azurewebsites.net/pubs/chandy.pdf)
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/engines/zeta/hybrid-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ seatunnel:
job-schedule-strategy: WAIT
```

当`dynamic-slot: true`时,`job-schedule-strategy: WAIT` 配置会失效,将被强制修改为`job-schedule-strategy: REJECT`,因为动态Slot时该参数没有意义,可以直接提交。
`job-schedule-strategy` 的行为不受 `dynamic-slot` 影响。当资源不足时,`WAIT` 会将作业保持在等待队列中并每隔 3 秒重试调度,`REJECT` 则直接使作业失败。

### 4.7 Coordinator Service

Expand Down
190 changes: 190 additions & 0 deletions docs/zh/engines/zeta/openapi-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

openapi: 3.1.0
info:
title: SeaTunnel Zeta REST v2 (read-only subset)
version: 0.1.0
description: >-
This initial contract covers only GET /overview and GET /resource/workers.
Other REST v2 endpoints are not yet described. The YAML is maintained with
the Jetty servlet routes and response tests in this repository.
servers:
- url: http://localhost:8080
description: >-
Example only. Set the scheme, host, port, and configured context path for
your running Zeta REST service before using a generated client. Use HTTPS
when sending Basic authentication credentials beyond localhost.
security:
- basicAuth: []
- {}
paths:
/overview:
get:
operationId: getOverview
summary: Get cluster overview
description: >-
Optional query keys filter the worker and slot totals by worker tags.
Job counts are cluster-wide. Count fields are JSON strings in this
servlet's current response, even though their source fields are numeric.
parameters:
- name: tags
in: query
required: false
description: >-
Free-form worker tag keys and string values, serialized as
key=value pairs such as region=west&team=data. There is no literal
tags query key.
style: form
explode: true
schema:
type: object
additionalProperties:
type: string
responses:
'200':
description: Current cluster overview.
content:
application/json:
schema:
$ref: '#/components/schemas/Overview'
'401':
description: Basic authentication is enabled and credentials are missing or invalid.
'500':
description: The server could not complete the request; error bodies vary.
/resource/workers:
get:
operationId: getWorkerResources
summary: Get worker resource snapshot
description: >-
Returns the latest worker resource projection. During a master
transition, available is false and workers is empty; HTTP 200 still
indicates a successfully delivered snapshot.
responses:
'200':
description: Point-in-time worker resource snapshot.
content:
application/json:
schema:
$ref: '#/components/schemas/WorkerResourceSnapshot'
'401':
description: Basic authentication is enabled and credentials are missing or invalid.
'500':
description: The server could not complete the request; error bodies vary.
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
description: Optional; configured on the Zeta Jetty service.
schemas:
Overview:
type: object
required:
- projectVersion
- gitCommitAbbrev
- totalSlot
- unassignedSlot
- runningJobs
- finishedJobs
- failedJobs
- pendingJobs
- cancelledJobs
- workers
properties:
projectVersion:
type: string
gitCommitAbbrev:
type: string
totalSlot:
$ref: '#/components/schemas/DecimalCountString'
unassignedSlot:
$ref: '#/components/schemas/DecimalCountString'
runningJobs:
$ref: '#/components/schemas/DecimalCountString'
finishedJobs:
$ref: '#/components/schemas/DecimalCountString'
failedJobs:
$ref: '#/components/schemas/DecimalCountString'
pendingJobs:
$ref: '#/components/schemas/DecimalCountString'
cancelledJobs:
$ref: '#/components/schemas/DecimalCountString'
workers:
$ref: '#/components/schemas/DecimalCountString'
DecimalCountString:
type: string
pattern: '^[0-9]+$'
description: A non-negative count serialized as a decimal JSON string.
WorkerResourceSnapshot:
type: object
required: [available, collectedAt, workers]
properties:
available:
type: boolean
description: False when the resource projection could not be collected.
collectedAt:
type: integer
format: int64
description: Snapshot collection time in Unix epoch milliseconds.
workers:
type: array
items:
$ref: '#/components/schemas/WorkerResourceDiagnostic'
WorkerResourceDiagnostic:
type: object
required: [address, tags, totalSlots, freeSlots, usedSlots, dynamicSlot, runningJobIds]
properties:
address:
type: string
tags:
type: object
additionalProperties:
type: string
totalSlots:
type: integer
format: int32
description: For dynamic slots, current assigned plus unassigned slots.
freeSlots:
type: integer
format: int32
usedSlots:
type: integer
format: int32
dynamicSlot:
type: boolean
totalCpuCores:
type: integer
format: int32
availableCpuCores:
type: integer
format: int32
totalHeapMemoryBytes:
type: integer
format: int64
availableHeapMemoryBytes:
type: integer
format: int64
cpuUsage:
type: number
format: double
memUsage:
type: number
format: double
runningJobIds:
type: array
items:
type: integer
format: int64
2 changes: 1 addition & 1 deletion docs/zh/engines/zeta/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ seatunnel:

## API参考

[REST v2 只读接口的 OpenAPI 3.1 规范](@site/docs/engines/zeta/openapi-v2.yaml)目前仅覆盖 `GET /overview` 和 `GET /resource/workers`。下文的其他接口仍有文档,但尚未纳入机器可读规范。该规范与 Servlet 路由注册及响应测试一起维护。使用生成的客户端时,请按实际地址、端口及可选的上下文路径设置基础 URL。是否使用 Basic 认证取决于服务端配置;向非本机发送凭据时请使用 HTTPS。
[REST v2 只读接口的 OpenAPI 3.1 规范](openapi-v2.yaml)目前仅覆盖 `GET /overview` 和 `GET /resource/workers`。下文的其他接口仍有文档,但尚未纳入机器可读规范。该规范与 Servlet 路由注册及响应测试一起维护。使用生成的客户端时,请按实际地址、端口及可选的上下文路径设置基础 URL。是否使用 Basic 认证取决于服务端配置;向非本机发送凭据时请使用 HTTPS。

### 获取 Connector 的 OptionRule

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/engines/zeta/separated-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ seatunnel:
job-schedule-strategy: WAIT
```

当`dynamic-slot: true`时,`job-schedule-strategy: WAIT` 配置会失效,将被强制修改为`job-schedule-strategy: REJECT`,因为动态Slot时该参数没有意义,可以直接提交。
`job-schedule-strategy` 的行为不受 `dynamic-slot` 影响。当资源不足时,`WAIT` 会将作业保持在等待队列中并每隔 3 秒重试调度,`REJECT` 则直接使作业失败。

### 4.8 Coordinator Service

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/engines/zeta/tuning-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ grep "SlowOperationDetector" "$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log | tai

将时间戳与以下事件关联:
- 作业提交事件(REST API 调用)
- Checkpoint 间隔(默认每 5 分钟一次,`seatunnel.engine.checkpoint.interval`)
- Checkpoint 间隔(引擎默认值为 300000 毫秒;发行包的 `config/seatunnel.yaml` 模板中配置为 `checkpoint.interval: 10000`)
- 高负载时段(数据摄入高峰期)

#### 第二步:检查节点整体健康状态
Expand Down