Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-153

skip records that fail Task

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.19.0
    • None
    • None
    • Reviewed
    • Introduced record skipping where tasks fail on certain records. (org.apache.hadoop.mapred.SkipBadRecords)

    Description

      MapReduce should skip records that throw exceptions.

      If the exception is thrown under RecordReader.next() then RecordReader implementations should automatically skip to the start of a subsequent record.

      Exceptions in map and reduce implementations can simply be logged, unless they happen under RecordWriter.write(). Cancelling partial output could be hard. So such output errors will still result in task failure.

      This behaviour should be optional, but enabled by default. A count of errors per task and job should be maintained and displayed in the web ui. Perhaps if some percentage of records (>50%?) result in exceptions then the task should fail. This would stop jobs early that are misconfigured or have buggy code.

      Thoughts?

      Attachments

        1. skipRecords_wip1.patch
          30 kB
          Enis Soztutar
        2. 153_9.patch
          68 kB
          Sharad Agarwal
        3. 153_8.patch
          68 kB
          Sharad Agarwal
        4. 153_7.patch
          68 kB
          Sharad Agarwal
        5. 153_6.patch
          68 kB
          Sharad Agarwal
        6. 153_5.patch
          63 kB
          Sharad Agarwal
        7. 153_4.patch
          63 kB
          Sharad Agarwal
        8. 153_3.patch
          63 kB
          Sharad Agarwal
        9. 153_2.patch
          57 kB
          Sharad Agarwal
        10. 153_1.patch
          37 kB
          Sharad Agarwal

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sharadag Sharad Agarwal
            cutting Doug Cutting
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment