spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandor Kollar (JIRA)" <>
Subject [jira] [Commented] (SPARK-7953) Spark should cleanup output dir if job fails
Date Mon, 04 Dec 2017 09:45:00 GMT


Nandor Kollar commented on SPARK-7953:

[~joshrosen] could you please help me with this issue, is this still an outstanding bug? It
looks like Spark. 2.2 already includes SPARK-18219, and it seems that the new commit protocol
calls abortJob and abortTask.

> Spark should cleanup output dir if job fails
> --------------------------------------------
>                 Key: SPARK-7953
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0
>            Reporter: Mohit Sabharwal
> MR calls abortTask and abortJob on the {{OutputCommitter}} to clean up the temporary
output directories, but Spark doesn't seem to be doing that (when outputting an RDD to a Hadoop
> For example: {{PairRDDFunctions.saveAsNewAPIHadoopDataset}} should call {{committer.abortTask(hadoopContext)}}
in the finally block inside the writeShard closure. And also {{jobCommitter.abortJob(jobTaskContext,
JobStatus.State.FAILED)}} should be called if the job fails.
> Additionally, MR removes the output dir if job fails, but Spark doesn't.

This message was sent by Atlassian JIRA

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

View raw message