Skip to main content
Version: Next

Separated Cluster Mode

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 and configure the Master, Worker and client 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.

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.

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.

{
"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"
}
]
}
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.

curl -fsS http://master-0.zeta-session.etl.example.net:8080/overview
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.