Skip to main content
Version: Next

YARN Deployment

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​

ModeYARN Service componentsWhen to use it
Local modeOne local container runs the job with an embedded Zeta engine.Trying a connector or running a one-off batch job.
Hybrid clusterOne hybrid component. Each container runs Master and Worker roles in one JVM.Small clusters where scheduling and execution can share resources.
Separated clusterSeparate 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.

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
  • 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
  • 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 lists the settings to change in the distribution before packaging it.
  • YARN Operations covers cluster status, Worker scaling, logs and service restarts.