[
https://issues.apache.org/jira/browse/MAPREDUCE-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900827#comment-13900827
]
Jason Lowe commented on MAPREDUCE-5758:
---------------------------------------
When tasks run under YARN they are handed app-level local directories to write
into and those are in turn passed down to the tasks to write local data. Since
the local output locations are not under the container directory, YARN does not
clean them up when the container exits. They are only reaped when the
app-level directory is deleted which occurs after the application completes.
Tasks should use the container-specific local directory for temporary local
outputs rather than the app-specific directory, so if they crash YARN can
automatically clean them promptly. Note that map outputs would have to be
committed to the same app-level local location they are today in order to
survive the container exiting and the ShuffleHandler to find them later.
However they could be accumulated before commit in a container-specific
directory so if the map attempt fails the data is reaped promptly rather than
only when the job completes. This would also help minimize chances of
inter-task file collisions such that occurred in MAPREDUCE-5211.
> Reducer local data is not deleted until job completes
> -----------------------------------------------------
>
> Key: MAPREDUCE-5758
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5758
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.10, 2.2.0
> Reporter: Jason Lowe
>
> Ran into an instance where a reducer shuffled a large amount of data and
> subsequently failed, but the local data is not purged when the task fails but
> only after the entire job completes. This wastes disk space unnecessarily
> since the data is no longer relevant after the task-attempt exits.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)