Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.19.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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?

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

        Issue Links

          Activity

          Doug Cutting created issue -
          Doug Cutting made changes -
          Field Original Value New Value
          Affects Version/s 0.2 [ 12310813 ]
          Assignee Doug Cutting [ cutting ]
          Doug Cutting made changes -
          Fix Version/s 0.2 [ 12310813 ]
          Doug Cutting made changes -
          Fix Version/s 0.3 [ 12310930 ]
          Fix Version/s 0.2 [ 12310813 ]
          Doug Cutting made changes -
          Fix Version/s 0.3.0 [ 12310930 ]
          Assignee Doug Cutting [ cutting ]
          Doug Cutting made changes -
          Workflow jira [ 12361349 ] no reopen closed [ 12372922 ]
          Doug Cutting made changes -
          Workflow no reopen closed [ 12372922 ] no-reopen-closed [ 12373254 ]
          Doug Cutting made changes -
          Workflow no-reopen-closed [ 12373254 ] no-reopen-closed, patch-avail [ 12377453 ]
          Doug Cutting made changes -
          Assignee Owen O'Malley [ owen.omalley ]
          Devaraj Das made changes -
          Assignee Owen O'Malley [ owen.omalley ] Devaraj Das [ devaraj ]
          Fix Version/s 0.17.0 [ 12312913 ]
          Robert Chansler made changes -
          Fix Version/s 0.17.0 [ 12312913 ]
          Sharad Agarwal made changes -
          Assignee Devaraj Das [ devaraj ] Sharad Agarwal [ sharadag ]
          Enis Soztutar made changes -
          Attachment skipRecords_wip1.patch [ 12384579 ]
          Sharad Agarwal made changes -
          Attachment 153_1.patch [ 12386292 ]
          Sharad Agarwal made changes -
          Attachment 153_2.patch [ 12386616 ]
          Sharad Agarwal made changes -
          Summary skip records that throw exceptions skip records that fail Task
          Sharad Agarwal made changes -
          Attachment 153_3.patch [ 12386871 ]
          Sharad Agarwal made changes -
          Link This issue blocks HADOOP-3828 [ HADOOP-3828 ]
          Sharad Agarwal made changes -
          Link This issue blocks HADOOP-3829 [ HADOOP-3829 ]
          Sharad Agarwal made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 0.19.0 [ 12313211 ]
          Sharad Agarwal made changes -
          Attachment 153_4.patch [ 12386874 ]
          Sharad Agarwal made changes -
          Attachment 153_5.patch [ 12387079 ]
          Sharad Agarwal made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Sharad Agarwal made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Doug Cutting made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Sharad Agarwal made changes -
          Attachment 153_6.patch [ 12387470 ]
          Sharad Agarwal made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Sharad Agarwal made changes -
          Attachment 153_7.patch [ 12387626 ]
          Sharad Agarwal made changes -
          Attachment 153_8.patch [ 12387929 ]
          Sharad Agarwal made changes -
          Attachment 153_9.patch [ 12387944 ]
          Devaraj Das made changes -
          Resolution Fixed [ 1 ]
          Hadoop Flags [Reviewed]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Koji Noguchi made changes -
          Link This issue relates to HADOOP-3954 [ HADOOP-3954 ]
          Sharad Agarwal made changes -
          Release Note If there are bugs in user code which lead to failure of Tasks on certain records, this feature can be used to skip these record on further attempts. Refer org.apache.hadoop.mapred.SkipBadRecords for various settings.
          Robert Chansler made changes -
          Release Note If there are bugs in user code which lead to failure of Tasks on certain records, this feature can be used to skip these record on further attempts. Refer org.apache.hadoop.mapred.SkipBadRecords for various settings. Introduced record skipping for where tasks fail on certain records.
          Robert Chansler made changes -
          Release Note Introduced record skipping for where tasks fail on certain records. Introduced record skipping where tasks fail on certain records. (org.apache.hadoop.mapred.SkipBadRecords)
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Owen O'Malley made changes -
          Component/s mapred [ 12310690 ]
          Gavin made changes -
          Link This issue blocks HADOOP-3828 [ HADOOP-3828 ]
          Gavin made changes -
          Link This issue is depended upon by HADOOP-3828 [ HADOOP-3828 ]
          Gavin made changes -
          Link This issue blocks HADOOP-3829 [ HADOOP-3829 ]
          Gavin made changes -
          Link This issue is depended upon by HADOOP-3829 [ HADOOP-3829 ]

            People

            • Assignee:
              Sharad Agarwal
              Reporter:
              Doug Cutting
            • Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development