mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
An EMR on EKS job run ran nothing: it was COMPLETED at once, or RUNNING on a timer and then COMPLETED, whatever its Spark job would have done. - With floci.services.emrcontainers.runner-mode set to docker, a run runs its Spark job in a container of its release's EMR on EKS base image on Amazon ECR Public, or of its custom image: a sparkSubmitJobDriver's spark-submit, or a sparkSqlJobDriver's spark-sql with its entry point as the file it runs, with the spark-defaults of its configurationOverrides and its execution role's credentials, on Floci's S3. - The release label names the image's repository and tag, as the development guide's release notes give each release's "Container image tag": emr-7.2.0-20240610 runs emr-7.2.0:20240610. The base image's spark-defaults.conf runs a driver in Kubernetes' cluster mode, so the driver runs in client mode, its executors with it. - A run is SUBMITTED while its container starts, RUNNING once its driver runs, and COMPLETED or FAILED as the driver exits, a failed driver with AWS's USER_ERROR and "Jobrun failed. Main Spark container terminated with errors. ...". A container that cannot start, a job driver without an entry point, and a run a restart left running fail with the development guide's INTERNAL_ERROR and VALIDATION_ERROR answers. - CancelJobRun makes a running run CANCEL_PENDING until its driver is stopped, then CANCELLED. - A run holds its virtual cluster's running slot from its submission until its driver ends, counting as concurrent, not queued, and the slot then goes to the queue. A run that cannot be handed to a thread fails and frees its slot, and a leftover driver of a run found failed is removed. - The immediate runner mode, the default, is unchanged.