[
https://issues.apache.org/jira/browse/MAPREDUCE-6166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Payne updated MAPREDUCE-6166:
----------------------------------
Attachment: MAPREDUCE-6166.v4.txt
Thank you again, [~jira.shegalov], for the very detailed analysis.
bq. {{OnDiskMapOutput}}: {{FileSystem.getLocal(conf)}} should be
{{FileSystem.getLocal(conf).getRaw()}}
Code changed.
-----
{{TestFetcher#testCorruptedFiles}} comments:
# Lower-case {{FETCHER}}
# Change {{FileSystem fs}} to {{FileSystem.getLocal(conf).getRaw()}}
# Move {{FileSystem fs}} to {{tearDown}}
# Rename {{Path p}} to be more descriptive
# Use {{name.getMethodName()}} to create a directory for creating onDiskMapOut
file so it can be removed in {{tearDown}}
# Use {{OnDiskMapOutput.getTempPath()}} when assigning value to
{{shuffledToDisk}}
# {{ios.close()}} should be in a finally block
# When creating and reading the corrupted {{ByteArrayInputStram}} put it into a
try block
# Drop {{fs.deleteOnExit()}}
# When creating {{IFileInputStream}}, don't mix in java.io {{FileInputStream}}.
# Put close of {{IFileInputStream}} into a finally block.
# we don't need {{fs.close}}
-----
Above changes are all done as part of this patch.
> Reducers do not catch bad map output transfers during shuffle if data
> shuffled directly to disk
> -----------------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-6166
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6166
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 2.6.0
> Reporter: Eric Payne
> Assignee: Eric Payne
> Attachments: MAPREDUCE-6166.v1.201411221941.txt,
> MAPREDUCE-6166.v2.201411251627.txt, MAPREDUCE-6166.v3.txt,
> MAPREDUCE-6166.v4.txt
>
>
> In very large map/reduce jobs (50000 maps, 2500 reducers), the intermediate
> map partition output gets corrupted on disk on the map side. If this
> corrupted map output is too large to shuffle in memory, the reducer streams
> it to disk without validating the checksum. In jobs this large, it could take
> hours before the reducer finally tries to read the corrupted file and fails.
> Since retries of the failed reduce attempt will also take hours, this delay
> in discovering the failure is multiplied greatly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)