spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yinan Li (JIRA)" <>
Subject [jira] [Commented] (SPARK-24122) Allow automatic driver restarts on K8s
Date Fri, 25 May 2018 22:31:00 GMT


Yinan Li commented on SPARK-24122:

The operator does cover automatic restart of an application with a configurable restart policy. For
batch ETL jobs, this is probably sufficient for common needs to restart jobs on failures.
For streaming jobs, checkpointing is needed. is
also relevant. 

> Allow automatic driver restarts on K8s
> --------------------------------------
>                 Key: SPARK-24122
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes
>    Affects Versions: 2.3.0
>            Reporter: Oz Ben-Ami
>            Priority: Minor
> [~foxish]
> Right now SparkSubmit creates the driver as a bare pod, rather than a managed controller
like a Deployment or a StatefulSet. This means there is no way to guarantee automatic restarts,
eg in case a node has an issue. Note Pod RestartPolicy does not apply if a node fails. A StatefulSet
would allow us to guarantee that, and keep the ability for executors to find the driver using
> This is particularly helpful for long-running streaming workloads, where we currently
use {{}} with YARN. I can confirm that Spark Streaming
and Structured Streaming applications can be made to recover from such a restart, with the
help of checkpointing. The executors will have to be started again by the driver, but this
should not be a problem.
> For batch processing, we could alternatively use Kubernetes {{Job}} objects, which restart
pods on failure but not success. For example, note the semantics provided by the {{kubectl
run}} [command|]
>  * {{--restart=Never}}: bare Pod
>  * {{--restart=Always}}: Deployment
>  * {{--restart=OnFailure}}: Job

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message