You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Fei Wang (Jira)" <ji...@apache.org> on 2026/06/02 05:03:00 UTC

[jira] [Created] (SPARK-57204) capture Spark driver stderr to Kubernetes termination log on failure

Fei Wang created SPARK-57204:
--------------------------------

             Summary: capture Spark driver stderr to Kubernetes termination log on failure
                 Key: SPARK-57204
                 URL: https://issues.apache.org/jira/browse/SPARK-57204
             Project: Spark
          Issue Type: Improvement
          Components: Kubernetes
    Affects Versions: 4.2.0
            Reporter: Fei Wang


* On non-zero exit, write the last 4KB of the Spark driver's stderr to {{/dev/termination-log}} so that {{kubectl describe pod}} surfaces the error in the pod's *Last State > Message* field
 * Driver stderr is streamed via a named pipe + awk ring buffer — fully visible in {{kubectl logs}} with no unbounded {{/tmp}} disk growth
 * SIGTERM is forwarded to tini so Kubernetes graceful shutdown still reaches the Spark driver
 * Only the {{driver}} entrypoint mode is affected; {{executor}} and pass-through modes are unchanged
 * The {{TERMINATION_LOG}} env var can override the path (e.g. for local testing)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org