mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
With CloudWatch logging enabled on a job run in the docker runner mode, its Spark driver's standard output and error now go line by line, while it runs, to Floci's CloudWatch Logs, as well as to Floci's log. - Which configuration: the run's cloudWatchLoggingConfiguration, or else the application's; the user guide merges them by configuration type, and "enabled": false at the run removes it. - Where: the log group logGroupName, /aws/emr-serverless by default, and the log streams <logStreamNamePrefix>/applications/<applicationId> /jobs/<jobRunId>/SPARK_DRIVER/stdout and .../stderr, with attempts/1/ before SPARK_DRIVER for a retried run on 7.1.0 or later, as for S3. The guide gives the default group and the stream up to its worker type; the stdout and stderr streams under it are as Dagster's EMR Serverless client reads them, and Airflow's operator builds the same prefix. Group and streams are created as needed, in the run's account and Region. - What: the driver's stdout and stderr, "By default, EMR Serverless publishes only the driver stdout and stderr logs". A logTypes that names some types sends only the driver's it names, so none of them when it names only SPARK_EXECUTOR: the API reference's logTypes is "The types of logs that you want to publish to CloudWatch". ContainerLogStreamer gets attachByStreamForAccount, which sends a container's standard output and error to log streams of their own; its reassembly callback now keeps the stream each line came from. The shared Spark runner uses it when a job carries a CloudWatch destination.