This is an automated email from the ASF dual-hosted git repository.

davidzollo 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 ac5fcf3790 [Docs][Zeta] Add a deployment guide for running SeaTunnel 
on YARN (#13331)
ac5fcf3790 is described below

commit ac5fcf3790c25aabf7d4a6bb42c0d66c406d573e
Author: zhiweiniu <[email protected]>
AuthorDate: Sat Nov 28 13:40:04 2026 +0800

    [Docs][Zeta] Add a deployment guide for running SeaTunnel on YARN (#13331)
---
 docs/en/getting-started/overview.md                |   4 +-
 docs/en/getting-started/yarn/configuration.md      | 246 +++++++++++++++++++++
 .../en/getting-started/yarn/hybrid-cluster-mode.md | 116 ++++++++++
 docs/en/getting-started/yarn/local-mode.md         |  86 +++++++
 docs/en/getting-started/yarn/operations.md         |  97 ++++++++
 .../getting-started/yarn/separated-cluster-mode.md | 100 +++++++++
 docs/en/getting-started/yarn/yarn.mdx              |  80 +++++++
 docs/sidebars.js                                   |  12 +
 docs/zh/getting-started/overview.md                |   4 +-
 docs/zh/getting-started/yarn/configuration.md      | 246 +++++++++++++++++++++
 .../zh/getting-started/yarn/hybrid-cluster-mode.md | 116 ++++++++++
 docs/zh/getting-started/yarn/local-mode.md         |  86 +++++++
 docs/zh/getting-started/yarn/operations.md         |  97 ++++++++
 .../getting-started/yarn/separated-cluster-mode.md | 100 +++++++++
 docs/zh/getting-started/yarn/yarn.mdx              |  80 +++++++
 15 files changed, 1466 insertions(+), 4 deletions(-)

diff --git a/docs/en/getting-started/overview.md 
b/docs/en/getting-started/overview.md
index 4fc82e31db..198a5e33db 100644
--- a/docs/en/getting-started/overview.md
+++ b/docs/en/getting-started/overview.md
@@ -29,10 +29,10 @@ For a broader comparison, see [Engine 
Overview](../engines/overview.md).
 
 ## Choose A Zeta Deployment Mode
 
-- **Long-running cluster**: deploy and maintain a shared Zeta cluster, then 
submit jobs to it. Start with [Zeta Deployment](../engines/zeta/deployment.md).
+- **Long-running cluster**: deploy and maintain a shared Zeta cluster, then 
submit jobs to it. Choose a deployment guide for [standalone 
hosts](../engines/zeta/deployment.md), 
[Kubernetes](./kubernetes/kubernetes.mdx), or [YARN](./yarn/yarn.mdx).
 - **Application Mode (experimental)**: run one job with its own master and 
fixed workers on Kubernetes, releasing compute resources when the application 
ends. Start with the [Application Mode Overview](./application/overview.md).
 
-If you already operate Kubernetes, follow the [Kubernetes Quick 
Start](./application/kubernetes/quick-start.md). Application Mode is a Zeta 
deployment mode, not a separate execution engine.
+To try Application Mode on Kubernetes, follow the [Application Mode Quick 
Start](./application/kubernetes/quick-start.md). Application Mode is a 
deployment option for the Zeta engine.
 
 ## Recommended First Run
 
diff --git a/docs/en/getting-started/yarn/configuration.md 
b/docs/en/getting-started/yarn/configuration.md
new file mode 100644
index 0000000000..840790ad0e
--- /dev/null
+++ b/docs/en/getting-started/yarn/configuration.md
@@ -0,0 +1,246 @@
+---
+sidebar_position: 5
+---
+
+# YARN Configuration
+
+<!--
+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.
+-->
+
+Prepare the SeaTunnel distribution on the submission host before uploading it 
to HDFS. Start in the directory where you unpacked the distribution.
+
+```bash
+cd "$SEATUNNEL_HOME"
+```
+
+## YARN Service definition
+
+Edit the JSON in the deployment guide for the selected mode before running 
`yarn app -launch`.
+
+| Field | What to configure |
+| --- | --- |
+| `queue` | A YARN queue the submitting user can access. Include capacity for 
the service ApplicationMaster in addition to the job or cluster containers. |
+| `configuration.files[].src_file` | The versioned HDFS archive to localize. 
Its `dest_file` must match the archive name used by the component launch 
command. |
+| `components[].number_of_containers`, `components[].resource` | Instance 
count per role and allocation per instance. Scaling the `worker` component 
changes execution capacity in separated mode. |
+| `components[].restart_policy` | Use `NEVER` for the one-shot local job. The 
hybrid and separated examples use the service default, `ALWAYS`, to replace 
exited members. |
+| `components[].dependencies`, `components[].readiness_check` | The separated 
Worker depends on the Master. A `PORT` check on the Master's port `5801` gates 
Worker startup. Check the registered Worker count before submitting a job. |
+
+## Member and client discovery
+
+[Local mode](local-mode.md) starts an embedded engine in the job container. 
The member discovery and client settings below apply to the two shared cluster 
modes.
+
+The examples use the submitting user `etl` and Registry DNS domain 
`example.net`. Use the service name and seed address for your deployment in 
both the member and client configurations.
+
+| Mode | Cluster name | Member configuration under `config/` | Seed address |
+| --- | --- | --- | --- |
+| [Hybrid](hybrid-cluster-mode.md) | `zeta-hybrid` | `hazelcast.yaml` | 
`hybrid-0.zeta-hybrid.etl.example.net:5801` |
+| [Separated](separated-cluster-mode.md) | `zeta-session` | 
`hazelcast-master.yaml`, `hazelcast-worker.yaml` | 
`master-0.zeta-session.etl.example.net:5801` |
+
+Containers and clients must resolve the seed address and reach the advertised 
member addresses. If you use a fixed hostname, configure YARN placement so the 
corresponding member runs on that host. [YARN service 
discovery](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html)
+
+Merge the following into the packaged `config/hazelcast-master.yaml`. For 
`config/hazelcast-worker.yaml`, use the same cluster name and seed address, and 
set the member port to `5802`. Keep the packaged heartbeat and failure detector 
settings in both files. The launch command selects the role with `-r master` or 
`-r worker`. For a hybrid cluster, merge the block into `config/hazelcast.yaml` 
using the hybrid values in the table.
+
+```yaml
+hazelcast:
+  cluster-name: zeta-session
+  network:
+    port:
+      port: 5801
+      auto-increment: false
+    join:
+      tcp-ip:
+        enabled: true
+        member-list:
+          - master-0.zeta-session.etl.example.net:5801
+```
+
+Set the following keys in `config/hazelcast-client.yaml` on each submission 
host. The CLI uses this file to find the running cluster.
+
+```yaml
+hazelcast-client:
+  cluster-name: zeta-session
+  network:
+    cluster-members:
+      - master-0.zeta-session.etl.example.net:5801
+```
+
+### Reach a Master after YARN reschedules it
+
+For process containers, YARN Registry DNS resolves each instance name to the 
IP of its current NodeManager host. Ask the Hadoop administrator to run 
Registry DNS with `hadoop.registry.dns.enabled=true`, the cluster's 
`hadoop.registry.zk.quorum`, and a `hadoop.registry.dns.domain-name` in 
`core-site.xml`. Configure the DNS resolvers used by submission hosts and 
NodeManagers to forward that zone to Registry DNS. [Registry DNS 
setup](https://hadoop.apache.org/docs/r3.3.6/hadoop-project-dist [...]
+
+Once the Master starts, run `getent hosts 
master-0.zeta-session.etl.example.net` from the submission host and Worker 
host. Both must reach the Master at the returned address on port 5801. 
Hazelcast uses that address to join the cluster, then connects directly to 
advertised member addresses. Allow traffic between the member hosts on their 
configured Hazelcast ports.
+
+### Place fixed-port Workers on different hosts
+
+The example uses ordinary process containers. Two Workers allocated to the 
same NodeManager share its IP and both try to bind ports 5802 and 8081. Before 
launching a service that you plan to scale, add the following field to its 
existing `worker` component in `zeta-session.json`. The target tag matches the 
component name. [YARN Service placement 
policy](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/YarnServiceAPI.html)
+
+```json
+{
+  "placement_policy": {
+    "constraints": [
+      {
+        "type": "ANTI_AFFINITY",
+        "scope": "NODE",
+        "target_tags": ["worker"]
+      }
+    ]
+  }
+}
+```
+
+Ask the Hadoop administrator to enable placement constraints on the 
ResourceManager. Hadoop 3.3.6 defaults 
`yarn.resourcemanager.placement-constraints.handler` to `disabled`. Set it to 
`placement-processor` or, with CapacityScheduler, `scheduler`. This rule places 
at most one Worker of this service on each eligible node. Two Workers need two 
eligible nodes with the ports free. If the available hosts cannot satisfy the 
request, YARN cannot bring the component to its requested size. [Hadoo [...]
+
+## Container resources and ports
+
+Each YARN container requests one allocation in vcores and MiB. The examples 
use the container limits from the corresponding Kubernetes 
[local](../kubernetes/local-mode.md), 
[hybrid](../kubernetes/hybrid-cluster-mode.md), and 
[separated](../kubernetes/separated-cluster-mode.md) deployments.
+
+| Component | vcores | Memory | Hazelcast / HTTP ports | JVM options under 
`config/` | Example heap |
+| --- | --- | --- | --- | --- | --- |
+| Local job | 1 | 4 GiB | No client endpoint required | `jvm_client_options` | 
— |
+| Hybrid member | 2 | 4 GiB | 5801 / 8080 | `jvm_options` | `-Xmx2g` |
+| Separated Master | 8 | 24 GiB | 5801 / 8080 | `jvm_master_options` | 
`-Xms16g -Xmx16g` |
+| Separated Worker | 8 | 24 GiB | 5802 / 8081 | `jvm_worker_options` | 
`-Xms16g -Xmx16g` |
+
+A hybrid member shares one JVM heap between Master and Worker duties. In 
separated mode, set the heap flags in each role's options file, one flag per 
line. The rest of each allocation provides room for metaspace, direct buffers, 
and thread stacks.
+
+## Engine configuration and checkpoint storage
+
+Merge these settings into `config/seatunnel.yaml` before packaging the 
distribution. This example gives each 8-vcore separated Worker eight fixed 
slots. `WAIT` queues jobs when the required slots are unavailable. The 
separated Master manages scheduling and checkpoints, and the Workers supply 
execution slots.
+
+```yaml
+seatunnel:
+  engine:
+    backup-count: 0
+    slot-service:
+      dynamic-slot: false
+      slot-num: 8
+    job-schedule-strategy: WAIT
+    checkpoint:
+      interval: 180000
+      timeout: 30000
+      storage:
+        type: hdfs
+        max-retained: 3
+        plugin-config:
+          storage.type: hdfs
+          fs.defaultFS: hdfs://namenode.example.net:8020
+          namespace: /user/etl/seatunnel/checkpoints/zeta-session/
+    http:
+      enable-http: true
+      port: 8080
+```
+
+The interval and timeout are in milliseconds. This example starts a checkpoint 
every three minutes, allows 30 seconds for it to complete, and sets the 
retention target to three completed checkpoints per pipeline. Size the timeout 
for the state and storage latency of your jobs. Replace `fs.defaultFS` with 
your HDFS URI. Run the following as the service user, or grant it read and 
write access to the two directories.
+
+```bash
+hdfs dfs -mkdir -p /user/etl/seatunnel/checkpoints/zeta-session 
/user/etl/seatunnel/imap
+```
+
+For `zeta-hybrid`, use `/user/etl/seatunnel/checkpoints/zeta-hybrid/` as the 
checkpoint namespace. The 2-vcore hybrid member shares CPU and memory between 
scheduling and tasks. For a trial, keep `dynamic-slot: true` and omit 
`slot-num` and `job-schedule-strategy`. To cap concurrency, set a smaller fixed 
slot count that can accommodate your job and use `WAIT`. [Slot 
allocation](../../engines/zeta/slot-allocation-strategy.md)
+
+**Separated mode only.** After setting the engine and storage options, copy 
the completed Master configuration, then set `seatunnel.engine.http.port` to 
`8081` in the copy. The service definition selects that file for the Worker 
through `SEATUNNEL_CONFIG`.
+
+```bash
+cp config/seatunnel.yaml config/seatunnel-worker.yaml
+```
+
+## Persist job metadata across a cluster restart
+
+Checkpoints hold operator state such as source offsets. To recover a running 
job automatically after every member stops, Zeta also needs the job metadata in 
its Hazelcast IMaps. Merge the following `map` entry under the existing 
`hazelcast` key in `config/hazelcast-master.yaml` on every separated Master. 
Keep the network and discovery settings. Separated Workers do not own IMap 
partitions.
+
+```yaml
+hazelcast:
+  map:
+    engine*:
+      map-store:
+        enabled: true
+        initial-mode: EAGER
+        factory-class-name: 
org.apache.seatunnel.engine.server.persistence.FileMapStoreFactory
+        properties:
+          type: hdfs
+          storage.type: hdfs
+          fs.defaultFS: hdfs://namenode.example.net:8020
+          namespace: /user/etl/seatunnel/imap
+          clusterName: zeta-session
+```
+
+For hybrid mode, put the same `map` entry in `config/hazelcast.yaml` on every 
hybrid member, with `clusterName: zeta-hybrid`. Keep the MapStore namespace 
separate from checkpoints. Use the same filesystem, namespace and `clusterName` 
when restarting a service so its members find the saved metadata. Give 
independent clusters different `clusterName` values.
+
+The one-Master and one-hybrid-member examples use `backup-count: 0`. To keep 
an in-memory backup on another host, run at least two data-owning members on 
different hosts and set `backup-count: 1`. A separated Worker does not count as 
a backup member. Restarting the YARN service replaces its processes. Resuming 
from a previous checkpoint depends on the job metadata, a usable completed 
checkpoint and access to the original job dependencies and external systems. 
[State storage and recovery] [...]
+
+### Using S3 or OSS
+
+Keep `type: hdfs` for the storage plugin and select `storage.type: s3` or 
`storage.type: oss` in the checkpoint `plugin-config` and MapStore 
`properties`. S3 uses `s3.bucket` (`s3a://bucket`) and `fs.s3a.*` options. OSS 
uses `oss.bucket` (`oss://bucket`) and `fs.oss.*` options. Include the 
filesystem dependencies in the staged distribution, supply credentials to the 
processes that access the bucket, and use distinct prefixes for checkpoints and 
IMap data. [Checkpoint storage](../../engin [...]
+
+## Kerberos and HDFS access
+
+On a Kerberized YARN cluster, merge the following field into the top level of 
the service JSON. Use the service principal and a keytab provisioned on every 
host eligible to run the ApplicationMaster. Hadoop 3.3.6 substitutes the AM 
hostname in `_HOST`. [Hadoop YARN Service 
security](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html#Run_with_security)
+
+```json
+{
+  "kerberos_principal": {
+    "principal_name": "seatunnel/[email protected]",
+    "keytab": "file:///etc/security/keytabs/seatunnel-am.keytab"
+  }
+}
+```
+
+For HDFS keytab login, merge these keys into the checkpoint `plugin-config` 
and, when enabled, the HDFS MapStore `properties`. The path must be readable by 
the relevant Zeta processes on each eligible host. Keep keytabs out of the 
distribution archive.
+
+```yaml
+kerberosPrincipal: [email protected]
+kerberosKeytabFilePath: /etc/security/keytabs/etl.keytab
+```
+
+For an HA nameservice, set `fs.defaultFS` to its logical URI in both storage 
configurations and point `hdfs_site_path` to an accessible `hdfs-site.xml` 
containing the nameservice and failover settings. [HDFS checkpoint 
storage](../../engines/zeta/checkpoint-storage.md#hdfs)
+
+## Package connectors, drivers and configuration
+
+On the submission host, select the connectors for your jobs in 
`config/plugin_config`. The batch example uses `connector-fake` and 
`connector-console`. To install additional connectors for the example release, 
run:
+
+```bash
+cd "$SEATUNNEL_HOME"
+bash bin/install-plugin.sh 3.1.0
+```
+
+| Contents | Location in the prepared distribution |
+| --- | --- |
+| Connector implementation JARs | `connectors/`. For a custom connector, 
include its entry in `connectors/plugin-mapping.properties`. |
+| Connector-specific dependencies | `plugins/<connector-artifact>/`. Use the 
artifact name from `connectors/plugin-mapping.properties` so Zeta loads these 
JARs with that connector. [Isolated connector 
dependencies](../../connectors/connector-isolated-dependency.md) |
+| JDBC driver for the Zeta JDBC connector | Place the vendor's compatible 
driver JAR in `lib/`, as specified by the [JDBC 
connector](../../connectors/sink/Jdbc.md#zeta-engine). Follow the chosen 
connector's instructions for other drivers. |
+| Transform JARs and process-wide libraries | `lib/` is on the client and 
server JVM classpaths. Keep the packaged `seatunnel-transforms-v2.jar` and add 
any custom Transform JAR here. |
+
+Package `bin/`, `config/`, `connectors/`, `lib/` and `plugins/` with the rest 
of the distribution after configuring the selected mode. Keep matching JAR 
versions on the submission client and in every component. Provision keytabs and 
other credentials separately at the paths used by the container processes.
+
+When changing configuration or JARs, upload a new archive, for example 
`zeta-hybrid-3.1.0-r2.tgz`, and update `configuration.files[].src_file` in the 
service definition used for the deployment. Retain the previous archive while 
containers can still be restarted from its definition. A replacement container 
localizes its own copy from HDFS.
+
+### Connector paths on NodeManager hosts
+
+With the default JAR settings in SeaTunnel 3.1.0, the cluster client sends 
absolute file paths for the job's connector JARs. Each hybrid member, Master 
and Worker must be able to read those paths. The launch command extracts the 
archive under each container's working directory.
+
+For example, if the client runs from `/opt/seatunnel/3.1.0`, install the same 
`connector-fake-3.1.0.jar` and `connector-console-3.1.0.jar` under 
`/opt/seatunnel/3.1.0/connectors/` on every eligible NodeManager, or mount that 
directory read-only at the same path. Apply this to any other local JAR paths 
submitted with the job. A missing path causes `NOT-FOUND-JAR` even when the 
archive contains the file. In local mode the client and engine share the 
container's extracted installation.
+
+## Capture container logs
+
+Hybrid members and separated Masters and Workers use 
`config/log4j2.properties`. By default they write rolling files under `logs/` 
in the extracted installation. To also send engine messages to the container's 
stdout and stderr, uncomment both references before packaging:
+
+```properties
+rootLogger.appenderRef.consoleStdout.ref = consoleStdoutAppender
+rootLogger.appenderRef.consoleStderr.ref = consoleStderrAppender
+```
+
+The submission CLI and the local-mode job use 
`config/log4j2_client.properties`, which enables both console appenders by 
default. With `yarn.log-aggregation-enable=true`, retrieve container output by 
YARN application ID. CLI output from a submission host stays on that host. 
[Read container logs](operations.md#read-container-logs)
diff --git a/docs/en/getting-started/yarn/hybrid-cluster-mode.md 
b/docs/en/getting-started/yarn/hybrid-cluster-mode.md
new file mode 100644
index 0000000000..f0e22fc6b2
--- /dev/null
+++ b/docs/en/getting-started/yarn/hybrid-cluster-mode.md
@@ -0,0 +1,116 @@
+---
+sidebar_position: 3
+---
+
+# Hybrid Cluster Mode
+
+<!--
+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.
+-->
+
+In hybrid mode, each Zeta member can participate in Master election and 
execute tasks in the same JVM. A small shared cluster can start with a single 
member. Coordination and task execution share the container's CPU and memory. 
To size and scale the two roles independently, use [Separated Cluster 
Mode](separated-cluster-mode.md).
+
+## Configure the hybrid member and client
+
+Start with the [YARN prerequisites](yarn.mdx). The example uses service 
`zeta-hybrid`, component `hybrid`, submitting user `etl` and Registry DNS 
domain `example.net`. Replace the example hostname in the member and client 
configuration with the address for your cluster.
+
+In the distribution under `$SEATUNNEL_HOME`, merge the following values into 
`config/hazelcast.yaml`. Keep the packaged member port `5801`.
+
+```yaml
+hazelcast:
+  cluster-name: zeta-hybrid
+  network:
+    join:
+      tcp-ip:
+        enabled: true
+        member-list:
+          - hybrid-0.zeta-hybrid.etl.example.net:5801
+```
+
+On the submission host, merge the following keys into 
`config/hazelcast-client.yaml` so the CLI can discover the hybrid member.
+
+```yaml
+hazelcast-client:
+  cluster-name: zeta-hybrid
+  network:
+    cluster-members:
+      - hybrid-0.zeta-hybrid.etl.example.net:5801
+```
+
+In `config/seatunnel.yaml`, set `seatunnel.engine.backup-count` to `0` for the 
single member and keep HTTP enabled on port `8080`. Follow [YARN 
Configuration](configuration.md) to configure HDFS checkpoint storage, using 
your HDFS URI and the namespace `/user/etl/seatunnel/checkpoints/zeta-hybrid`. 
In `config/jvm_options`, set the heap below the 4 GiB container limit, for 
example `-Xmx2g`.
+
+## Stage and launch the service
+
+Before launch, [make the client's connector JAR paths available on every 
eligible NodeManager](configuration.md#connector-paths-on-nodemanager-hosts).
+
+Package the distribution with the configured files and the connectors used by 
your jobs. The archive root must contain `bin/` and `config/`.
+
+```bash
+tar -czf /tmp/zeta-hybrid-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases 
/user/etl/seatunnel/checkpoints/zeta-hybrid
+hdfs dfs -put /tmp/zeta-hybrid-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+Save the following as `zeta-hybrid.json`. The queue needs capacity for the 
YARN Service ApplicationMaster and one hybrid container. The launch command 
runs the default `master_and_worker` role in the foreground.
+
+```json
+{
+  "name": "zeta-hybrid",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-hybrid-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "hybrid",
+      "number_of_containers": 1,
+      "resource": { "cpus": 2, "memory": "4096" },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-hybrid ./zeta-hybrid.json
+yarn app -status zeta-hybrid
+```
+
+## Submit a job
+
+Check the Zeta member has joined and reports one Worker.
+
+```bash
+curl -fsS http://hybrid-0.zeta-hybrid.etl.example.net:8080/overview
+```
+
+Run the bundled batch example from the submission host. After the job 
finishes, the same YARN service can accept the next job.
+
+```bash
+cd "$SEATUNNEL_HOME"
+bin/seatunnel.sh -m cluster -c config/v2.batch.config.template
+```
+
+## Run more than one member
+
+Give each member a stable address and add the member addresses to both 
Hazelcast discovery lists. For example, a second instance of this component is 
`hybrid-1.zeta-hybrid.etl.example.net:5801`. When using host networking, place 
members on different NodeManager hosts so their fixed ports remain available. 
With two members on separate hosts, set `backup-count: 1` for one IMap backup. 
[Hybrid cluster deployment](../../engines/zeta/hybrid-cluster-deployment.md)
diff --git a/docs/en/getting-started/yarn/local-mode.md 
b/docs/en/getting-started/yarn/local-mode.md
new file mode 100644
index 0000000000..d59db14654
--- /dev/null
+++ b/docs/en/getting-started/yarn/local-mode.md
@@ -0,0 +1,86 @@
+---
+sidebar_position: 2
+---
+
+# Local Mode
+
+<!--
+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.
+-->
+
+Run a single SeaTunnel job in one YARN component container. The CLI starts an 
embedded Zeta engine and exits when the job finishes. Use this mode to check a 
connector or job configuration before deploying a 
[hybrid](hybrid-cluster-mode.md) or [separated](separated-cluster-mode.md) 
cluster.
+
+## Prepare the job
+
+Start with a clean SeaTunnel 3.1.0 binary distribution under 
`$SEATUNNEL_HOME`. This example runs the bundled 
`config/v2.batch.config.template`, a bounded FakeSource job that writes to 
Console. To run your own job, include its configuration, connectors and drivers 
in the distribution and update the `-c` path in the service definition.
+
+From the submission host, package the distribution with `bin/` and `config/` 
at the archive root, then stage it in HDFS. Replace the example HDFS path in 
both the command and the service definition.
+
+```bash
+tar -czf /tmp/zeta-local-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases
+hdfs dfs -put /tmp/zeta-local-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+## Launch on YARN
+
+Save the following as `zeta-local.json`. The queue must have capacity for the 
YARN Service ApplicationMaster and the single job container. The container runs 
`seatunnel.sh -m local` in the foreground. With `restart_policy` set to 
`NEVER`, YARN Service finishes when this component exits and releases the 
containers.
+
+```json
+{
+  "name": "zeta-local",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-local-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "local",
+      "number_of_containers": 1,
+      "restart_policy": "NEVER",
+      "resource": { "cpus": 1, "memory": "4096" },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& cd seatunnel && exec bash bin/seatunnel.sh -m local -c 
config/v2.batch.config.template"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-local ./zeta-local.json
+```
+
+## Check the result
+
+Set `APP_ID` to the YARN application ID printed by the launch command. Check 
the ResourceManager report for `State : FINISHED` and `Final-State : SUCCEEDED`.
+
+```bash
+yarn application -status "$APP_ID"
+```
+
+If the application fails, check its diagnostics. With log aggregation enabled, 
use the following command to inspect container output.
+
+```bash
+yarn logs -applicationId "$APP_ID"
+```
+
+For another independent run, use a new service name in both the JSON and the 
launch command.
diff --git a/docs/en/getting-started/yarn/operations.md 
b/docs/en/getting-started/yarn/operations.md
new file mode 100644
index 0000000000..981996cad6
--- /dev/null
+++ b/docs/en/getting-started/yarn/operations.md
@@ -0,0 +1,97 @@
+---
+sidebar_position: 6
+---
+
+# YARN Operations
+
+<!--
+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.
+-->
+
+## Check the service and registered Workers
+
+Check the YARN service and Zeta HTTP endpoint from the submission host. For 
the [hybrid cluster](hybrid-cluster-mode.md), use its combined member's 
endpoint.
+
+```bash
+yarn app -status zeta-hybrid
+curl -fsS http://hybrid-0.zeta-hybrid.etl.example.net:8080/overview
+```
+
+For the [separated cluster](separated-cluster-mode.md), use the Master 
endpoint.
+
+```bash
+yarn app -status zeta-session
+curl -fsS http://master-0.zeta-session.etl.example.net:8080/overview
+```
+
+The YARN service status lists the application ID, component instances and 
container hosts. In the Zeta response, `workers` counts Workers that have 
joined the cluster. Each example starts one member that executes tasks. Wait 
for `workers` to reach `1` before submitting a job.
+
+In separated mode, if YARN allocates a Worker but the count stays at zero, 
check the Worker log, verify that the container can resolve and reach the 
Master on port `5801`, and compare the Hazelcast cluster name in the Master and 
Worker configurations.
+
+## Read container logs
+
+With YARN log aggregation enabled, set `APP_ID` to the YARN application ID 
from the status output for the service run you want to inspect.
+
+```bash
+yarn logs -applicationId "$APP_ID"
+```
+
+To include Zeta engine messages in container output, enable the stdout and 
stderr console appender references in `config/log4j2.properties` before 
packaging SeaTunnel.
+
+## Scale cluster components
+
+### Scale hybrid members
+
+In hybrid mode, scaling the `hybrid` component changes execution capacity, 
membership in Master elections and IMap partition placement together. Place 
members with the example's fixed ports (`5801` and `8080`) on distinct hosts. 
Before removing a member, check that the remaining members can host the 
configured backups and run the jobs.
+
+After configuring placement and discovery for two hybrid members, increase the 
component size and wait for `/overview` to report two Workers.
+
+```bash
+yarn app -flex zeta-hybrid -component hybrid 2
+```
+
+### Scale Workers in separated mode
+
+The example uses fixed ports `5802` and `8081` for every Worker. With host 
networking, configure YARN placement to keep Workers on separate NodeManager 
hosts before scaling. Check that the queue has enough memory and vcores for the 
additional container.
+
+```bash
+yarn app -flex zeta-session -component worker 2
+```
+
+This sets the desired Worker count to two. Check `/overview` for `workers` 
equal to `2` before submitting jobs that need the additional capacity.
+
+To return to one Worker, wait for batch jobs to finish or stop affected 
streaming jobs with a savepoint. Verify the remaining Worker has enough slots 
before reducing capacity.
+
+```bash
+yarn app -flex zeta-session -component worker 1
+```
+
+## Stop and restart the service
+
+Before planned downtime, let batch jobs finish and take a savepoint for any 
streaming job you intend to resume. Stop the service to release its containers. 
The commands below use the separated service name. For hybrid mode, replace 
`zeta-session` with `zeta-hybrid`.
+
+```bash
+yarn app -stop zeta-session
+```
+
+Start the saved service again and check Worker registration before submitting 
or restoring jobs.
+
+```bash
+yarn app -start zeta-session
+yarn app -status zeta-session
+```
+
+Both examples store checkpoints in HDFS. To recover running jobs automatically 
after a full cluster outage, also [configure a durable IMap 
MapStore](configuration.md) on the members that store job metadata. For planned 
restarts, keep the job ID and configuration for restoring each savepoint. 
[State storage and recovery](../../engines/zeta/state-storage-and-recovery.md)
diff --git a/docs/en/getting-started/yarn/separated-cluster-mode.md 
b/docs/en/getting-started/yarn/separated-cluster-mode.md
new file mode 100644
index 0000000000..00dd06f18f
--- /dev/null
+++ b/docs/en/getting-started/yarn/separated-cluster-mode.md
@@ -0,0 +1,100 @@
+---
+sidebar_position: 4
+---
+
+# Separated Cluster Mode
+
+<!--
+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.
+-->
+
+This walkthrough launches the `zeta-session` service with one Master and one 
Worker. Use `yarn app` to manage the shared service and `bin/seatunnel.sh` to 
submit individual jobs.
+
+## Prepare the distribution
+
+Complete the [YARN prerequisites](yarn.mdx) and [configure the Master, Worker 
and client](configuration.md) before packaging the distribution. The client 
uses its local copy of `config/hazelcast-client.yaml`. Install the same job 
connectors and drivers in the distribution that you deploy to YARN.
+
+## Stage and launch the service
+
+Before launch, [make the client's connector JAR paths available on every 
eligible NodeManager](configuration.md#connector-paths-on-nodemanager-hosts).
+
+Package the **contents** of the prepared distribution so `bin/` and `config/` 
are at the archive root. Use a new archive name when changing the distribution 
or configuration, and update `src_file` in the service definition.
+
+```bash
+tar -czf /tmp/zeta-session-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases 
/user/etl/seatunnel/checkpoints/zeta-session
+hdfs dfs -put /tmp/zeta-session-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+Save the following as `zeta-session.json`. The Master and Worker each request 
8 vcores and 24 GiB (24576 MiB). The queue needs 16 vcores and 48 GiB for the 
pair, plus capacity for the YARN Service ApplicationMaster. Check that the 
scheduler and queue allow an 8-vcore, 24-GiB container and that each container 
fits on an eligible NodeManager.
+
+YARN localizes the archive into each container. Each role extracts its own 
writable installation for logs and runtime files. The Worker starts after the 
Master's member port is reachable. Both launch commands keep the JVM in the 
foreground so YARN can track it.
+
+```json
+{
+  "name": "zeta-session",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-session-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "master",
+      "number_of_containers": 1,
+      "resource": { "cpus": 8, "memory": "24576" },
+      "readiness_check": { "type": "PORT", "properties": { "port": "5801" } },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh -r master"
+    },
+    {
+      "name": "worker",
+      "number_of_containers": 1,
+      "dependencies": ["master"],
+      "resource": { "cpus": 8, "memory": "24576" },
+      "configuration": { "env": { "SEATUNNEL_CONFIG": 
"seatunnel/config/seatunnel-worker.yaml" } },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh -r worker"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-session ./zeta-session.json
+yarn app -status zeta-session
+```
+
+## Submit a job and check the cluster
+
+Check that the Zeta Master reports `workers` as `1` before submitting the 
batch example.
+
+```bash
+curl -fsS http://master-0.zeta-session.etl.example.net:8080/overview
+```
+
+```bash
+cd "$SEATUNNEL_HOME"
+bin/seatunnel.sh -m cluster -c config/v2.batch.config.template
+```
+
+The CLI reports the Zeta job ID and final status. After the job reaches 
`FINISHED`, run `yarn app -status zeta-session` again. The same YARN 
application ID should still be active, and you can submit another job to the 
same Master.
+
+For status checks, logs and restarts, see [YARN Operations](operations.md).
diff --git a/docs/en/getting-started/yarn/yarn.mdx 
b/docs/en/getting-started/yarn/yarn.mdx
new file mode 100644
index 0000000000..f1ce0e0d6f
--- /dev/null
+++ b/docs/en/getting-started/yarn/yarn.mdx
@@ -0,0 +1,80 @@
+---
+sidebar_position: 1
+---
+
+# YARN Deployment
+
+<!--
+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.
+-->
+
+Run a single Zeta job in local mode or use a Hadoop YARN Service to keep a 
hybrid or separated cluster available for multiple jobs. In local mode the job 
releases its container when it finishes. In either cluster mode, subsequent 
jobs reuse the running Zeta members.
+
+## Deployment modes
+
+| Mode | YARN Service components | When to use it |
+| --- | --- | --- |
+| [Local mode](local-mode.md) | One `local` container runs the job with an 
embedded Zeta engine. | Trying a connector or running a one-off batch job. |
+| [Hybrid cluster](hybrid-cluster-mode.md) | One `hybrid` component. Each 
container runs Master and Worker roles in one JVM. | Small clusters where 
scheduling and execution can share resources. |
+| [Separated cluster](separated-cluster-mode.md) | Separate `master` and 
`worker` components. Each container runs one role. | Production clusters that 
need resource isolation or independent Worker scaling. |
+
+## Separated cluster topology
+
+In the `zeta-session` example, the YARN Service ApplicationMaster (AM) 
requests containers from the ResourceManager and asks the NodeManagers on the 
allocated hosts to start the Zeta Master and Worker. The SeaTunnel CLI submits 
jobs directly to the Zeta Master, which schedules tasks on the Worker.
+
+```mermaid
+flowchart TB
+  client["SeaTunnel CLI"]
+
+  subgraph yarn["YARN cluster"]
+    subgraph management["Container management"]
+      rm["ResourceManager"]
+      am["YARN Service AM"]
+      nm["NodeManagers"]
+    end
+
+    master["Zeta Master JVM"]
+    worker["Zeta Worker JVM"]
+  end
+
+  rm -. "Allocates containers" .-> am
+  am -. "Launch requests" .-> nm
+  nm -.-> master
+  nm -.-> worker
+  client -->|Submit jobs| master
+  master -->|Schedule tasks| worker
+
+  classDef layerBlue 
fill:#0f1d33,stroke:#5db8e2,stroke-width:2px,color:#f8fbff;
+  classDef layerCyan 
fill:#0c2530,stroke:#2dd4bf,stroke-width:2px,color:#f8fbff;
+  classDef layerPurple 
fill:#1f1a34,stroke:#8d7cf6,stroke-width:2px,color:#f8fbff;
+
+  class yarn,management layerBlue;
+  class rm,nm,am layerCyan;
+  class client,master,worker layerPurple;
+  linkStyle default stroke:#5db8e2,stroke-width:2px;
+  linkStyle 0,1,2,3 stroke:#5db8e2,stroke-width:2px,stroke-dasharray:4 3;
+```
+
+## Prerequisites
+
+- A Hadoop cluster with HDFS and YARN Service enabled. The example uses Hadoop 
3.3.6. Set `yarn.webapp.api-service.enable=true` on the ResourceManager. The 
submitting user needs access to the HDFS staging directory and enough queue 
capacity for the ApplicationMaster and the containers in the selected mode. For 
jobs using HDFS checkpoints, grant write access to the checkpoint directory as 
well. [Hadoop YARN Service Quick 
Start](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn [...]
+- For hybrid and separated clusters, use stable discovery addresses for the 
hybrid members or Masters, resolvable by the client and the containers. Zeta 
members must be able to reach each other. The example uses YARN Registry DNS. 
[YARN service 
discovery](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html)
+- A SeaTunnel binary distribution on the submission host and Java 11 or 17 on 
the submission host and in the containers. Set `SEATUNNEL_HOME` to the 
extracted distribution. The example uses SeaTunnel 3.1.0 with the FakeSource 
and Console connectors.
+
+## Deploy and operate the cluster
+
+- [YARN Configuration](configuration.md) lists the settings to change in the 
distribution before packaging it.
+- [YARN Operations](operations.md) covers cluster status, Worker scaling, logs 
and service restarts.
diff --git a/docs/sidebars.js b/docs/sidebars.js
index 2929e3bd07..32720a79ee 100644
--- a/docs/sidebars.js
+++ b/docs/sidebars.js
@@ -80,6 +80,18 @@ const sidebars = {
                         "getting-started/kubernetes/helm"
                     ]
                 },
+                {
+                    "type": "category",
+                    "label": "YARN",
+                    "items": [
+                        "getting-started/yarn/yarn",
+                        "getting-started/yarn/local-mode",
+                        "getting-started/yarn/hybrid-cluster-mode",
+                        "getting-started/yarn/separated-cluster-mode",
+                        "getting-started/yarn/configuration",
+                        "getting-started/yarn/operations"
+                    ]
+                },
                 {
                     "type": "category",
                     "label": "Application Mode (Experimental)",
diff --git a/docs/zh/getting-started/overview.md 
b/docs/zh/getting-started/overview.md
index 9e9f85dd47..8b5f000a29 100644
--- a/docs/zh/getting-started/overview.md
+++ b/docs/zh/getting-started/overview.md
@@ -29,10 +29,10 @@ SeaTunnel 是一个分布式数据集成平台,用统一的连接器模型处
 
 ## 如何选择 Zeta 部署模式
 
-- **常驻集群**:部署并维护共享的 Zeta 集群,再向集群提交作业。参见 [Zeta 
安装部署](../engines/zeta/deployment.md)。
+- **常驻集群**:部署并维护共享的 Zeta 集群,再向集群提交作业。根据运行环境选择 
[独立主机部署](../engines/zeta/deployment.md)、[Kubernetes 
部署](./kubernetes/kubernetes.mdx) 或 [YARN 部署](./yarn/yarn.mdx)。
 - **Application Mode(实验性)**:在 Kubernetes 上为一个作业启动独立的 Master 和固定数量的 
Worker,应用结束后释放计算资源。参见 [Application Mode 总览](./application/overview.md)。
 
-如果已有 Kubernetes 资源平台,可以直接阅读 [Kubernetes 
快速开始](./application/kubernetes/quick-start.md)。Application Mode 是 Zeta 
的一种部署模式,不是另一种执行引擎。
+在 Kubernetes 上试用 Application Mode,请阅读 [Application Mode 
快速开始](./application/kubernetes/quick-start.md)。Application Mode 是 Zeta 
引擎的一种部署模式。
 
 ## 最短首跑路径
 
diff --git a/docs/zh/getting-started/yarn/configuration.md 
b/docs/zh/getting-started/yarn/configuration.md
new file mode 100644
index 0000000000..801e3eae75
--- /dev/null
+++ b/docs/zh/getting-started/yarn/configuration.md
@@ -0,0 +1,246 @@
+---
+sidebar_position: 5
+---
+
+# YARN 配置
+
+<!--
+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.
+-->
+
+将发行包上传到 HDFS 前,先在提交机上配置 SeaTunnel。下面的命令从发行包的解压目录执行。
+
+```bash
+cd "$SEATUNNEL_HOME"
+```
+
+## YARN Service 服务定义
+
+运行 `yarn app -launch` 前,按所选部署模式修改对应的 JSON 文件。
+
+| 字段 | 配置说明 |
+| --- | --- |
+| `queue` | 填写提交用户有权使用的 YARN 队列,同时为服务的 ApplicationMaster 和作业或集群容器预留资源。 |
+| `configuration.files[].src_file` | 填写要分发的 HDFS 归档路径,使用带版本的文件名。`dest_file` 
必须与组件启动命令中使用的归档文件名一致。 |
+| `components[].number_of_containers`、`components[].resource` | 
分别设置每个角色的实例数和单实例资源。在分离模式下,调整 `worker` 组件的实例数即可改变执行容量。 |
+| `components[].restart_policy` | 一次性本地作业使用 `NEVER`。混合与分离模式示例沿用默认值 
`ALWAYS`,成员退出后由服务启动替代实例。 |
+| `components[].dependencies`、`components[].readiness_check` | 分离模式下 Worker 依赖 
Master,Master 的 `5801` 端口通过 `PORT` 检查后才启动 Worker。提交作业前还需确认 Worker 已注册。 |
+
+## 成员发现与客户端连接
+
+[本地模式](local-mode.md)在作业容器中启动内嵌引擎。以下成员发现和客户端设置适用于两种常驻集群模式。
+
+示例使用提交用户 `etl` 和 Registry DNS 域名 `example.net`。成员和客户端配置都应使用所选模式对应的集群名和发现地址。
+
+| 模式 | 集群名 | `config/` 下的成员配置 | 成员发现地址 |
+| --- | --- | --- | --- |
+| [混合模式](hybrid-cluster-mode.md) | `zeta-hybrid` | `hazelcast.yaml` | 
`hybrid-0.zeta-hybrid.etl.example.net:5801` |
+| [分离模式](separated-cluster-mode.md) | `zeta-session` | 
`hazelcast-master.yaml`、`hazelcast-worker.yaml` | 
`master-0.zeta-session.etl.example.net:5801` |
+
+容器和客户端都需要能解析成员发现地址,并能访问各成员通告的地址。如果使用固定主机名,请配置 YARN 调度约束,将对应成员调度到该主机。[YARN 
服务发现](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html)
+
+将下列设置合并到发行包的 `config/hazelcast-master.yaml`。在 `config/hazelcast-worker.yaml` 
中使用相同的集群名和发现地址,并将成员监听端口设为 `5802`。两个文件都保留发行包的心跳和故障检测配置,启动命令通过 `-r master` 或 `-r 
worker` 选择角色。混合模式使用 `config/hazelcast.yaml`,将集群名和地址换成表中的混合模式值。
+
+```yaml
+hazelcast:
+  cluster-name: zeta-session
+  network:
+    port:
+      port: 5801
+      auto-increment: false
+    join:
+      tcp-ip:
+        enabled: true
+        member-list:
+          - master-0.zeta-session.etl.example.net:5801
+```
+
+在每台提交机的 `config/hazelcast-client.yaml` 中设置以下配置,CLI 将通过这个地址连接常驻集群。
+
+```yaml
+hazelcast-client:
+  cluster-name: zeta-session
+  network:
+    cluster-members:
+      - master-0.zeta-session.etl.example.net:5801
+```
+
+### YARN 重新调度后如何找到 Master
+
+使用普通进程容器时,YARN Registry DNS 会将组件实例名解析到当前所在 NodeManager 主机的 IP 地址。请 Hadoop 管理员在 
`core-site.xml` 中设置 `hadoop.registry.dns.enabled=true`、集群的 
`hadoop.registry.zk.quorum` 和域名 `hadoop.registry.dns.domain-name`,启动 Registry 
DNS 服务,并让提交机和 NodeManager 使用的 DNS 解析器把该域的查询转发给 Registry DNS。[Registry DNS 
配置](https://hadoop.apache.org/docs/r3.3.6/hadoop-project-dist/hadoop-common/registry/registry-dns.html)
 · [YARN 
服务发现](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/Serv
 [...]
+
+Master 启动后,在提交机和 Worker 所在主机运行 `getent hosts 
master-0.zeta-session.etl.example.net`,确认两端都能访问解析结果的 5801 端口。Hazelcast 
通过该地址加入集群,随后直接连接成员通告的地址。请确保成员之间能够访问各自配置的 Hazelcast 端口。
+
+### 将使用固定端口的 Worker 分配到不同主机
+
+示例使用普通进程容器。如果两个 Worker 分配到同一台 NodeManager,它们会共用主机 IP,并争用 5802 和 8081 
端口。若计划扩容,请在启动服务前将以下字段加入 `zeta-session.json` 中现有的 `worker` 组件。目标标签取组件名。[YARN 
Service 
放置策略](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/YarnServiceAPI.html)
+
+```json
+{
+  "placement_policy": {
+    "constraints": [
+      {
+        "type": "ANTI_AFFINITY",
+        "scope": "NODE",
+        "target_tags": ["worker"]
+      }
+    ]
+  }
+}
+```
+
+请 Hadoop 管理员在 ResourceManager 上启用放置约束。Hadoop 3.3.6 的 
`yarn.resourcemanager.placement-constraints.handler` 默认为 `disabled`,可以设为 
`placement-processor`,使用 CapacityScheduler 时也可以设为 
`scheduler`。启用该规则后,本服务在每个符合条件的节点最多放置一个 Worker。两个 Worker 
需要两台满足资源要求且端口空闲的主机。主机不足时,YARN 无法将组件扩至目标数量。[Hadoop 
放置约束](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/PlacementConstraints.html)
+
+## 容器资源与端口
+
+YARN 为每个容器申请一组 vcore 和内存配额。示例取值与 Kubernetes 
[本地模式](../kubernetes/local-mode.md)、[混合模式](../kubernetes/hybrid-cluster-mode.md)和[分离模式](../kubernetes/separated-cluster-mode.md)示例中的容器资源上限一致。
+
+| 组件 | vcore 数 | 内存 | Hazelcast / HTTP 端口 | `config/` 下的 JVM 配置 | 示例堆大小 |
+| --- | --- | --- | --- | --- | --- |
+| 本地作业 | 1 | 4 GiB | 无需客户端连接地址 | `jvm_client_options` | — |
+| 混合节点 | 2 | 4 GiB | 5801 / 8080 | `jvm_options` | `-Xmx2g` |
+| 分离模式 Master | 8 | 24 GiB | 5801 / 8080 | `jvm_master_options` | `-Xms16g 
-Xmx16g` |
+| 分离模式 Worker | 8 | 24 GiB | 5802 / 8081 | `jvm_worker_options` | `-Xms16g 
-Xmx16g` |
+
+混合节点的 Master 和 Worker 共用一个 JVM 堆。分离模式需要在各角色的 JVM 
配置文件中逐行写入堆参数。容器内的剩余空间供元空间、直接缓冲区和线程栈使用。
+
+## 引擎与 checkpoint 存储配置
+
+打包发行目录前,将下面的配置合并到 `config/seatunnel.yaml`。在分离模式下,示例为每个 8 vcore 的 Worker 配置 8 
个固定 slot。可用 slot 不足时,`WAIT` 会让作业等待资源。Master 负责调度和 checkpoint,Worker 提供执行 slot。
+
+```yaml
+seatunnel:
+  engine:
+    backup-count: 0
+    slot-service:
+      dynamic-slot: false
+      slot-num: 8
+    job-schedule-strategy: WAIT
+    checkpoint:
+      interval: 180000
+      timeout: 30000
+      storage:
+        type: hdfs
+        max-retained: 3
+        plugin-config:
+          storage.type: hdfs
+          fs.defaultFS: hdfs://namenode.example.net:8020
+          namespace: /user/etl/seatunnel/checkpoints/zeta-session/
+    http:
+      enable-http: true
+      port: 8080
+```
+
+间隔和超时的单位都是毫秒。示例每三分钟触发一次 checkpoint,超时时间为 30 秒,每条 pipeline 保留的已完成 checkpoint 
目标数为 3。根据作业状态大小和存储延迟调整超时。将 `fs.defaultFS` 替换为实际 HDFS 
URI。使用服务用户执行以下命令,或授予它这两个目录的读写权限。
+
+```bash
+hdfs dfs -mkdir -p /user/etl/seatunnel/checkpoints/zeta-session 
/user/etl/seatunnel/imap
+```
+
+对于 `zeta-hybrid`,使用 `/user/etl/seatunnel/checkpoints/zeta-hybrid/` 作为 
checkpoint 的命名空间。2 vcore 的混合成员由调度和执行任务共享 CPU 和内存。试运行时可保留 `dynamic-slot: 
true`,并移除 `slot-num` 和 `job-schedule-strategy`。需要限制并发时,使用足以容纳作业的较小固定 slot 数,并设置 
`WAIT`。[Slot 分配](../../engines/zeta/slot-allocation-strategy.md)
+
+**仅分离模式需要此步骤。** 完成引擎与存储配置后,再复制 Master 的配置文件,并将副本中的 
`seatunnel.engine.http.port` 设为 `8081`。服务定义通过 `SEATUNNEL_CONFIG` 为 Worker 指定该文件。
+
+```bash
+cp config/seatunnel.yaml config/seatunnel-worker.yaml
+```
+
+## 持久化整集群重启所需的作业元数据
+
+Checkpoint 保存源端读取位点等算子状态。要在所有成员停止后自动恢复运行中的作业,Zeta 还需要 Hazelcast IMap 
中的作业元数据。在分离模式下,将以下 `map` 配置合并到每个 Master 的 `config/hazelcast-master.yaml` 的 
`hazelcast` 节点下,保留原有的网络与服务发现配置。分离模式的 Worker 不持有 IMap 分区。
+
+```yaml
+hazelcast:
+  map:
+    engine*:
+      map-store:
+        enabled: true
+        initial-mode: EAGER
+        factory-class-name: 
org.apache.seatunnel.engine.server.persistence.FileMapStoreFactory
+        properties:
+          type: hdfs
+          storage.type: hdfs
+          fs.defaultFS: hdfs://namenode.example.net:8020
+          namespace: /user/etl/seatunnel/imap
+          clusterName: zeta-session
+```
+
+混合模式下,把相同的 `map` 配置放入每个混合成员的 `config/hazelcast.yaml`,并设置 `clusterName: 
zeta-hybrid`。MapStore 和 checkpoint 使用独立的命名空间。服务重启前后应保持 MapStore 的文件系统、命名空间和 
`clusterName` 一致,以便找到已有的作业元数据。不同集群使用不同的 `clusterName`。
+
+单 Master 和单混合成员示例均使用 `backup-count: 0`。如果需要在其他主机保存一份内存备份,至少在两台主机上各部署一个持有 IMap 
数据的成员,并设置 `backup-count: 1`。分离模式的 Worker 不计入备份成员。YARN 重新启动服务时会重新创建进程。从已有 
checkpoint 恢复作业还需要作业元数据、可用的已完成 
checkpoint,以及访问原作业依赖和外部系统的权限。[状态存储与恢复](../../engines/zeta/state-storage-and-recovery.md)
+
+### 使用 S3 或 OSS
+
+存储插件的 `type` 保持为 `hdfs`,在 checkpoint 的 `plugin-config` 和 MapStore 的 
`properties` 中配置 `storage.type: s3` 或 `storage.type: oss`。S3 使用 
`s3.bucket`(`s3a://bucket`)和 `fs.s3a.*` 配置项,OSS 使用 
`oss.bucket`(`oss://bucket`)和 `fs.oss.*` 配置项。将文件系统依赖加入上传到 YARN 
的发行包,为需要访问存储桶的进程提供凭据,并为 checkpoint 和 IMap 数据使用不同的路径前缀。[Checkpoint 
存储](../../engines/zeta/checkpoint-storage.md) · [IMap 
存储示例](../../engines/zeta/separated-cluster-deployment.md)
+
+## Kerberos 和 HDFS 访问
+
+对于启用 Kerberos 的 YARN 集群,将下面的字段合并到服务 JSON 顶层。使用分配给该服务的 principal,并在所有可运行 
ApplicationMaster 的主机上预置 keytab。Hadoop 3.3.6 会将 `_HOST` 替换为 AM 的主机名。[Hadoop 
YARN Service 
安全配置](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html#Run_with_security)
+
+```json
+{
+  "kerberos_principal": {
+    "principal_name": "seatunnel/[email protected]",
+    "keytab": "file:///etc/security/keytabs/seatunnel-am.keytab"
+  }
+}
+```
+
+如果使用 keytab 登录 HDFS,将下列设置合并到 checkpoint 的 `plugin-config`,以及已启用的 HDFS MapStore 
的 `properties`。确保各候选主机上的相关 Zeta 进程都能读取指定的 keytab,并将其独立于发行包部署。
+
+```yaml
+kerberosPrincipal: [email protected]
+kerberosKeytabFilePath: /etc/security/keytabs/etl.keytab
+```
+
+如果 HDFS 使用 HA nameservice,在两处存储配置中将 `fs.defaultFS` 设为逻辑 URI,并用 
`hdfs_site_path` 指向进程可读取的 `hdfs-site.xml`,其中应包含 nameservice 和故障转移配置。[HDFS 
checkpoint 存储](../../engines/zeta/checkpoint-storage.md#hdfs)
+
+## 打包连接器、驱动和配置
+
+在提交机的 `config/plugin_config` 中选择作业所需的连接器。示例批作业使用 `connector-fake` 和 
`connector-console`。为示例版本安装其他连接器时,执行以下命令。
+
+```bash
+cd "$SEATUNNEL_HOME"
+bash bin/install-plugin.sh 3.1.0
+```
+
+| 文件 | 在发行包中的位置 |
+| --- | --- |
+| 连接器实现 JAR | 放入 `connectors/`。对于自定义连接器,还要在 
`connectors/plugin-mapping.properties` 中添加对应条目。 |
+| 连接器专用依赖 | 放入 `plugins/<connector-artifact>/`。目录名取自 
`connectors/plugin-mapping.properties` 中映射的构件名,Zeta 会在加载对应连接器时加载这些 
JAR。[连接器依赖隔离](../../connectors/connector-isolated-dependency.md) |
+| Zeta JDBC 连接器的数据库驱动 | 按 [JDBC 
连接器文档](../../connectors/sink/Jdbc.md#zeta-引擎),将兼容的数据库驱动 JAR 放入 
`lib/`。其他连接器的驱动位置请参照相应文档。 |
+| Transform JAR 和进程级依赖 | 客户端和服务端 JVM 都会将 `lib/` 加入类路径。保留发行包自带的 
`seatunnel-transforms-v2.jar`,自定义 Transform JAR 也放在这里。 |
+
+完成所选模式的配置后,将 `bin/`、`config/`、`connectors/`、`lib/`、`plugins/` 
连同发行包的其他文件一起打包。提交客户端与各组件应使用相同版本的 JAR。将 keytab 等凭据单独部署到容器进程配置的路径。
+
+更新配置或 JAR 时,使用新名称上传归档,例如 `zeta-hybrid-3.1.0-r2.tgz`,并更新本次部署所用服务定义中的 
`configuration.files[].src_file`。只要还有容器可能按旧定义重启,就要保留原有归档。替换容器会从 HDFS 重新获取自己的副本。
+
+### NodeManager 主机上的连接器路径
+
+使用 SeaTunnel 3.1.0 的默认 JAR 配置时,集群客户端会提交作业所用连接器 JAR 的绝对路径。每个混合节点、Master 和 
Worker 都必须能读取这些路径。每个容器的启动命令都会把归档解压到自己的工作目录。
+
+例如,客户端从 `/opt/seatunnel/3.1.0` 运行时,在每台可调度的 NodeManager 上,将相同的 
`connector-fake-3.1.0.jar` 和 `connector-console-3.1.0.jar` 安装到 
`/opt/seatunnel/3.1.0/connectors/`,也可以将该目录只读挂载到相同路径。随作业提交的其他本地 JAR 
路径也要满足这一要求。如果节点无法读取客户端提交的路径,即使归档里有同名文件,作业也会报 `NOT-FOUND-JAR`。Local 
模式下,客户端和引擎共用容器里解压出的发行目录。
+
+## 收集容器日志
+
+混合节点以及分离模式下的 Master 和 Worker 都使用 `config/log4j2.properties`,默认将滚动日志写到解压后发行目录下的 
`logs/`。要同时把引擎日志写到容器的标准输出和标准错误,请在打包前取消以下两行的注释。
+
+```properties
+rootLogger.appenderRef.consoleStdout.ref = consoleStdoutAppender
+rootLogger.appenderRef.consoleStderr.ref = consoleStderrAppender
+```
+
+提交作业的 CLI 和本地模式作业使用 `config/log4j2_client.properties`,默认已启用这两个控制台 appender。启用 
`yarn.log-aggregation-enable=true` 后,可按 YARN application ID 查看容器输出。在提交机上运行 CLI 
的输出保留在提交机上。[查看容器日志](operations.md#查看容器日志)
diff --git a/docs/zh/getting-started/yarn/hybrid-cluster-mode.md 
b/docs/zh/getting-started/yarn/hybrid-cluster-mode.md
new file mode 100644
index 0000000000..5cb3c42fc4
--- /dev/null
+++ b/docs/zh/getting-started/yarn/hybrid-cluster-mode.md
@@ -0,0 +1,116 @@
+---
+sidebar_position: 3
+---
+
+# 混合集群模式
+
+<!--
+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.
+-->
+
+混合模式下,每个 Zeta 成员在同一个 JVM 中参与 Master 选举并执行任务。小规模常驻集群可以从一个成员起步,调度和任务执行共享容器的 CPU 
和内存。如果需要为两个角色分别配置资源和扩缩容,请使用[分离集群模式](separated-cluster-mode.md)。
+
+## 配置混合节点和客户端
+
+先确认已满足 [YARN 部署的前置条件](yarn.mdx)。示例使用服务名 `zeta-hybrid`、组件名 `hybrid`、提交用户 `etl` 
和 Registry DNS 域 `example.net`。请将成员和客户端配置中的示例主机名替换为实际地址。
+
+在 `$SEATUNNEL_HOME` 发行目录中,将以下配置合并到 `config/hazelcast.yaml`,保留发行包的成员端口 `5801`。
+
+```yaml
+hazelcast:
+  cluster-name: zeta-hybrid
+  network:
+    join:
+      tcp-ip:
+        enabled: true
+        member-list:
+          - hybrid-0.zeta-hybrid.etl.example.net:5801
+```
+
+在提交机上,将以下配置合并到 `config/hazelcast-client.yaml`,使 CLI 能发现混合节点。
+
+```yaml
+hazelcast-client:
+  cluster-name: zeta-hybrid
+  network:
+    cluster-members:
+      - hybrid-0.zeta-hybrid.etl.example.net:5801
+```
+
+在 `config/seatunnel.yaml` 中,为单成员集群设置 `seatunnel.engine.backup-count: 0`,保持 
HTTP 服务启用并监听 `8080` 端口。按 [YARN 配置](configuration.md) 设置 HDFS checkpoint 
存储,填写实际的 HDFS URI,并将 namespace 设为 
`/user/etl/seatunnel/checkpoints/zeta-hybrid`。在 `config/jvm_options` 中设置低于容器 4 
GiB 上限的堆大小,例如 `-Xmx2g`。
+
+## 上传发行包并启动服务
+
+启动服务前,先[确认每台可调度的 NodeManager 都能读取客户端的连接器 JAR 
路径](configuration.md#nodemanager-主机上的连接器路径)。
+
+将配置好的发行目录与作业需要的连接器一起打包,使 `bin/` 和 `config/` 位于压缩包根目录。
+
+```bash
+tar -czf /tmp/zeta-hybrid-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases 
/user/etl/seatunnel/checkpoints/zeta-hybrid
+hdfs dfs -put /tmp/zeta-hybrid-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+将以下内容保存为 `zeta-hybrid.json`。队列需要有足够资源运行 YARN Service 的 ApplicationMaster 
和一个混合节点容器。启动命令使用默认的 `master_and_worker` 角色,并保持进程在前台运行。
+
+```json
+{
+  "name": "zeta-hybrid",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-hybrid-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "hybrid",
+      "number_of_containers": 1,
+      "resource": { "cpus": 2, "memory": "4096" },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-hybrid ./zeta-hybrid.json
+yarn app -status zeta-hybrid
+```
+
+## 提交作业
+
+确认 Zeta 节点已加入集群,返回的 `workers` 为 `1`。
+
+```bash
+curl -fsS http://hybrid-0.zeta-hybrid.etl.example.net:8080/overview
+```
+
+在提交机上运行发行包自带的批作业。作业结束后,同一套 YARN 服务可以继续接收下一个作业。
+
+```bash
+cd "$SEATUNNEL_HOME"
+bin/seatunnel.sh -m cluster -c config/v2.batch.config.template
+```
+
+## 部署多个成员
+
+为每个成员提供稳定地址,并在成员端和客户端的 Hazelcast 发现列表中加入这些地址。例如,该组件的第二个实例地址为 
`hybrid-1.zeta-hybrid.etl.example.net:5801`。使用宿主机网络时,将各成员调度到不同的 NodeManager 
主机,避免固定端口冲突。若有两个成员分别位于不同主机,可设置 `backup-count: 1`,为 IMap 
保留一个备份副本。[混合集群部署](../../engines/zeta/hybrid-cluster-deployment.md)
diff --git a/docs/zh/getting-started/yarn/local-mode.md 
b/docs/zh/getting-started/yarn/local-mode.md
new file mode 100644
index 0000000000..4e9e150e8d
--- /dev/null
+++ b/docs/zh/getting-started/yarn/local-mode.md
@@ -0,0 +1,86 @@
+---
+sidebar_position: 2
+---
+
+# 本地模式
+
+<!--
+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.
+-->
+
+在一个 YARN 组件容器中运行一个 SeaTunnel 作业。CLI 启动内嵌的 Zeta 
引擎,作业结束后进程退出。部署[混合集群](hybrid-cluster-mode.md)或[分离集群](separated-cluster-mode.md)前,可用此模式验证连接器或作业配置。
+
+## 准备作业
+
+在提交机的 `$SEATUNNEL_HOME` 下准备一份干净的 SeaTunnel 3.1.0 二进制发行包。示例使用自带的 
`config/v2.batch.config.template`,从 FakeSource 读取有限条记录并写入 
Console。运行自己的作业时,请将作业配置、连接器和驱动放入发行包,并修改服务定义中的 `-c` 路径。
+
+在提交机上打包发行目录,确保 `bin/` 和 `config/` 位于压缩包根目录,然后上传到 HDFS。请将命令和服务定义中的 HDFS 
路径均替换为实际路径。
+
+```bash
+tar -czf /tmp/zeta-local-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases
+hdfs dfs -put /tmp/zeta-local-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+## 在 YARN 上启动
+
+将以下内容保存为 `zeta-local.json`。目标队列需要有足够资源同时运行 YARN Service 的 ApplicationMaster 
和一个作业容器。容器在前台执行 `seatunnel.sh -m local`。`restart_policy` 设为 `NEVER` 
后,唯一的组件退出时,YARN Service 随之结束并释放容器。
+
+```json
+{
+  "name": "zeta-local",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-local-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "local",
+      "number_of_containers": 1,
+      "restart_policy": "NEVER",
+      "resource": { "cpus": 1, "memory": "4096" },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& cd seatunnel && exec bash bin/seatunnel.sh -m local -c 
config/v2.batch.config.template"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-local ./zeta-local.json
+```
+
+## 检查结果
+
+将 `APP_ID` 设为启动命令输出的 YARN application ID。在 ResourceManager 返回的报告中确认 `State : 
FINISHED` 和 `Final-State : SUCCEEDED`。
+
+```bash
+yarn application -status "$APP_ID"
+```
+
+如果应用失败,请先查看报告中的诊断信息。开启日志聚合后,可执行以下命令查看容器输出。
+
+```bash
+yarn logs -applicationId "$APP_ID"
+```
+
+再次独立运行作业时,请在 JSON 和启动命令中使用同一个新服务名。
diff --git a/docs/zh/getting-started/yarn/operations.md 
b/docs/zh/getting-started/yarn/operations.md
new file mode 100644
index 0000000000..0e6d28abab
--- /dev/null
+++ b/docs/zh/getting-started/yarn/operations.md
@@ -0,0 +1,97 @@
+---
+sidebar_position: 6
+---
+
+# YARN 运维
+
+<!--
+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.
+-->
+
+## 检查服务状态和已注册的 Worker
+
+在提交机上检查 YARN 服务和 Zeta HTTP 端点。[混合模式](hybrid-cluster-mode.md)使用混合节点的地址。
+
+```bash
+yarn app -status zeta-hybrid
+curl -fsS http://hybrid-0.zeta-hybrid.etl.example.net:8080/overview
+```
+
+[分离模式](separated-cluster-mode.md)使用 Master 的地址。
+
+```bash
+yarn app -status zeta-session
+curl -fsS http://master-0.zeta-session.etl.example.net:8080/overview
+```
+
+YARN 服务状态中包含 application ID、组件实例和容器所在主机。Zeta 返回的 `workers` 表示已加入集群的 Worker 
数量。两种示例都启动了一个能执行任务的成员,等 `workers` 达到 `1` 后再提交作业。
+
+在分离模式下,如果 YARN 已分配 Worker 容器,但注册数持续为零,先查看 Worker 日志,再检查容器是否能解析 Master 地址并连接 
`5801` 端口,以及两端配置的 Hazelcast 集群名是否一致。
+
+## 查看容器日志
+
+启用 YARN 日志聚合后,将 `APP_ID` 设为服务状态中本次运行对应的 YARN application ID。
+
+```bash
+yarn logs -applicationId "$APP_ID"
+```
+
+若要在容器输出中查看 Zeta 引擎日志,在打包 SeaTunnel 前启用 `config/log4j2.properties` 中 stdout 和 
stderr 的控制台 appender 引用。
+
+## 集群组件扩缩容
+
+### 混合节点扩缩容
+
+在混合模式下,调整 `hybrid` 组件的实例数会同时改变任务执行容量、参与 Master 选举的成员和 IMap 分区分布。示例使用固定端口 
`5801` 和 `8080`,需要把各成员放在不同主机上。移除节点前,确认剩余成员能容纳已配置的备份副本并满足作业的资源需求。
+
+为两个混合节点配置好调度约束和成员发现后,增加组件实例数,等待 `/overview` 显示两个 Worker。
+
+```bash
+yarn app -flex zeta-hybrid -component hybrid 2
+```
+
+### 分离模式下的 Worker 扩缩容
+
+示例中每个 Worker 都使用固定端口 `5802` 和 `8081`。如果容器共享宿主机网络,先配置 YARN 调度约束,让不同 Worker 
分布在不同的 NodeManager 主机上,并确认队列有足够的内存和 vcore 分配给新增容器。
+
+```bash
+yarn app -flex zeta-session -component worker 2
+```
+
+此命令将 Worker 目标数量设为两个。确认 `/overview` 中的 `workers` 达到 `2` 后,再提交需要新增资源的作业。
+
+要缩回一个 Worker,先等待批作业结束,或通过 savepoint 停止受影响的流作业。确认保留的 Worker 有足够的 slot 后再缩容。
+
+```bash
+yarn app -flex zeta-session -component worker 1
+```
+
+## 停止和重启服务
+
+计划停机前,等待批作业结束,并为后续需要恢复的流作业创建 savepoint。停止服务会释放容器。以下命令使用分离模式的服务名,混合模式请将 
`zeta-session` 替换为 `zeta-hybrid`。
+
+```bash
+yarn app -stop zeta-session
+```
+
+按已保存的服务定义重新启动,确认 Worker 注册后再提交或恢复作业。
+
+```bash
+yarn app -start zeta-session
+yarn app -status zeta-session
+```
+
+两种示例都将 checkpoint 写入 HDFS。若希望整套集群故障后自动恢复运行中的作业,还需要在存储作业元数据的成员上[配置持久化 IMap 
MapStore](configuration.md)。计划停机时,请保留作业 ID 和作业配置,以便从各自的 savepoint 
恢复。[状态存储与恢复](../../engines/zeta/state-storage-and-recovery.md)
diff --git a/docs/zh/getting-started/yarn/separated-cluster-mode.md 
b/docs/zh/getting-started/yarn/separated-cluster-mode.md
new file mode 100644
index 0000000000..55f09257db
--- /dev/null
+++ b/docs/zh/getting-started/yarn/separated-cluster-mode.md
@@ -0,0 +1,100 @@
+---
+sidebar_position: 4
+---
+
+# 分离集群模式
+
+<!--
+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.
+-->
+
+下面以一个 Master 和一个 Worker 为例启动 `zeta-session` 常驻服务。使用 `yarn app` 管理共享服务,使用 
`bin/seatunnel.sh` 向集群提交各个作业。
+
+## 准备发行包
+
+先确认已满足 [YARN 部署的前置条件](yarn.mdx),并按 [YARN 配置](configuration.md) 设置 
Master、Worker 和客户端,再打包发行目录。客户端读取本地的 `config/hazelcast-client.yaml`。部署到 YARN 
的发行包也需要包含作业使用的连接器和驱动。
+
+## 上传发行包并启动服务
+
+启动服务前,先[确认每台可调度的 NodeManager 都能读取客户端的连接器 JAR 
路径](configuration.md#nodemanager-主机上的连接器路径)。
+
+打包配置好的**发行目录中的内容**,使 `bin/` 和 `config/` 
位于压缩包根目录。更新发行包或配置时,请使用新的归档文件名,并同步修改服务定义中的 `src_file`。
+
+```bash
+tar -czf /tmp/zeta-session-3.1.0.tgz -C "$SEATUNNEL_HOME" .
+hdfs dfs -mkdir -p /user/etl/seatunnel/releases 
/user/etl/seatunnel/checkpoints/zeta-session
+hdfs dfs -put /tmp/zeta-session-3.1.0.tgz /user/etl/seatunnel/releases/
+```
+
+将以下内容保存为 `zeta-session.json`。Master 和 Worker 各申请 8 个 vcore 和 24 GiB(24576 
MiB)内存。队列需要为这两个容器提供 16 个 vcore 和 48 GiB 内存,并额外为 YARN Service 的 
ApplicationMaster 预留资源。确认调度器和队列允许申请 8 个 vcore、24 GiB 的单个容器,且每个容器都能在可调度的 
NodeManager 上获得足够资源。
+
+YARN 将压缩包分发到各容器。每个角色分别解压到自己的可写目录,用于存放日志和运行时文件。Master 的成员端口就绪后才启动 
Worker。两条启动命令都让 JVM 在前台运行,便于 YARN 跟踪进程状态。
+
+```json
+{
+  "name": "zeta-session",
+  "version": "1",
+  "queue": "default",
+  "configuration": {
+    "files": [
+      {
+        "type": "STATIC",
+        "src_file": "/user/etl/seatunnel/releases/zeta-session-3.1.0.tgz",
+        "dest_file": "zeta.tgz"
+      }
+    ]
+  },
+  "components": [
+    {
+      "name": "master",
+      "number_of_containers": 1,
+      "resource": { "cpus": 8, "memory": "24576" },
+      "readiness_check": { "type": "PORT", "properties": { "port": "5801" } },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh -r master"
+    },
+    {
+      "name": "worker",
+      "number_of_containers": 1,
+      "dependencies": ["master"],
+      "resource": { "cpus": 8, "memory": "24576" },
+      "configuration": { "env": { "SEATUNNEL_CONFIG": 
"seatunnel/config/seatunnel-worker.yaml" } },
+      "launch_command": "mkdir -p seatunnel && tar -xzf zeta.tgz -C seatunnel 
&& exec bash seatunnel/bin/seatunnel-cluster.sh -r worker"
+    }
+  ]
+}
+```
+
+```bash
+yarn app -launch zeta-session ./zeta-session.json
+yarn app -status zeta-session
+```
+
+## 提交作业并验证集群
+
+先确认 Zeta Master 返回的 `workers` 为 `1`,再从提交机运行示例批作业。
+
+```bash
+curl -fsS http://master-0.zeta-session.etl.example.net:8080/overview
+```
+
+```bash
+cd "$SEATUNNEL_HOME"
+bin/seatunnel.sh -m cluster -c config/v2.batch.config.template
+```
+
+CLI 会输出 Zeta 作业 ID 和最终状态。作业达到 `FINISHED` 后,再次执行 `yarn app -status 
zeta-session`。同一个 YARN application ID 应仍处于运行状态,此时可以继续向同一个 Master 提交作业。
+
+查看服务状态、容器日志和重启步骤,请参见 [YARN 运维](operations.md)。
diff --git a/docs/zh/getting-started/yarn/yarn.mdx 
b/docs/zh/getting-started/yarn/yarn.mdx
new file mode 100644
index 0000000000..a596bae707
--- /dev/null
+++ b/docs/zh/getting-started/yarn/yarn.mdx
@@ -0,0 +1,80 @@
+---
+sidebar_position: 1
+---
+
+# YARN 部署
+
+<!--
+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.
+-->
+
+通过 Hadoop YARN Service 可以运行一个本地模式作业,也可以部署混合或分离的 Zeta 
常驻集群。使用本地模式时,作业结束后释放容器。使用常驻集群时,后续作业复用已有的 Zeta 节点。
+
+## 部署模式
+
+| 模式 | YARN Service 组件 | 适用场景 |
+| --- | --- | --- |
+| [本地模式](local-mode.md) | 一个 `local` 容器启动内嵌 Zeta 引擎并运行作业。 | 验证连接器或执行一次性批作业。 |
+| [混合集群](hybrid-cluster-mode.md) | 一个 `hybrid` 组件,每个容器里的 Master 和 Worker 
角色共用一个 JVM。 | 规模较小,调度和执行可以共用资源的集群。 |
+| [分离集群](separated-cluster-mode.md) | 独立的 `master` 和 `worker` 组件,每个容器运行一种角色。 | 
需要隔离调度与执行资源,或独立扩缩 Worker 的生产集群。 |
+
+## 分离集群拓扑
+
+下图以 `zeta-session` 为例。YARN Service 的 ApplicationMaster(AM)向 ResourceManager 
申请容器,再请求相应主机上的 NodeManager 启动 Zeta Master 和 Worker 容器。SeaTunnel CLI 直接向 Zeta 
Master 提交作业,Master 把任务调度给 Worker。
+
+```mermaid
+flowchart TB
+  client["SeaTunnel CLI"]
+
+  subgraph yarn["YARN cluster"]
+    subgraph management["Container management"]
+      rm["ResourceManager"]
+      am["YARN Service AM"]
+      nm["NodeManagers"]
+    end
+
+    master["Zeta Master JVM"]
+    worker["Zeta Worker JVM"]
+  end
+
+  rm -. "Allocates containers" .-> am
+  am -. "Launch requests" .-> nm
+  nm -.-> master
+  nm -.-> worker
+  client -->|Submit jobs| master
+  master -->|Schedule tasks| worker
+
+  classDef layerBlue 
fill:#0f1d33,stroke:#5db8e2,stroke-width:2px,color:#f8fbff;
+  classDef layerCyan 
fill:#0c2530,stroke:#2dd4bf,stroke-width:2px,color:#f8fbff;
+  classDef layerPurple 
fill:#1f1a34,stroke:#8d7cf6,stroke-width:2px,color:#f8fbff;
+
+  class yarn,management layerBlue;
+  class rm,nm,am layerCyan;
+  class client,master,worker layerPurple;
+  linkStyle default stroke:#5db8e2,stroke-width:2px;
+  linkStyle 0,1,2,3 stroke:#5db8e2,stroke-width:2px,stroke-dasharray:4 3;
+```
+
+## 前置条件
+
+- 准备已启用 HDFS 和 YARN Service 的 Hadoop 集群。示例使用 Hadoop 3.3.6,ResourceManager 需要启用 
`yarn.webapp.api-service.enable=true`。提交用户需要能将发行包写入 HDFS,目标队列应有足够资源运行 
ApplicationMaster 和所选模式的全部容器。使用 HDFS checkpoint 的作业还需要有权写入对应目录。[Hadoop YARN 
Service 
快速入门](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html)
+- 使用混合或分离集群时,为混合节点或 Master 配置客户端和容器都能解析的稳定发现地址,并确保 Zeta 成员之间网络互通。示例使用 YARN 
Registry DNS。[YARN 
服务发现](https://hadoop.apache.org/docs/r3.3.6/hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html)
+- 在提交机上解压 SeaTunnel 二进制发行包,把 `SEATUNNEL_HOME` 指向解压目录。提交机和容器里都需要能运行 Java 11 或 
17。示例使用 SeaTunnel 3.1.0 及 FakeSource、Console 连接器。
+
+## 部署和运维
+
+- [YARN 配置](configuration.md)列出打包前需要修改的发行包配置。
+- [YARN 运维](operations.md)介绍如何检查集群状态、调整 Worker 数量、查看日志和重启服务。

Reply via email to