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

Jobs with empty map-outputs and intermediate compression fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: