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

Jobs with empty map-outputs and intermediate compression fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.18.0
    • Fix Version/s: 0.18.0
    • Component/s: None
    • Labels:
      None

      Description

      The corner case where there are zero map-outputs doesn't pass the codec to the IFile.Writer leading to un-compressed data and subsequently failure on the reduce when it tries to decompress that data.

      The straight-forward fix is to pass the codec:

                 Writer<K, V> writer = new Writer<K, V>(job, finalOut, 
      -                                                 keyClass, valClass, null);
      +                                                 keyClass, valClass, codec);
      

        Attachments

        1. HADOOP-3827_0_20080724.patch
          5 kB
          Arun Murthy

          Activity

            People

            • Assignee:
              acmurthy Arun Murthy
              Reporter:
              acmurthy Arun Murthy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: