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

Bzip2Codec: Data block is skipped when position of newly created stream is equal to start of split

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

      bz2 input files are handled by FileInputFormat+LineRecordReader. In LineRecordReader, bz2 specific compressed input stream is created to iterate over records. After every new creation, the stream points to the beginning of next data block. The logic to find the beginning of next block depends on start of the split. The search begins at 10 bytes behind the start of split. If the first search creates input stream whose position is before or at start of split, next block beginning is sought (assuming that the record reader for previous split would have already iterated over the the data block in which current start of split lies). If the split start is just at the byte where a newly created stream is positioned (start of data block), attempt is made to find beginning of next data block. This doesn't seem correct because this will result in jumping a whole block and will result in missing records.

      Attachments

        1. HADOOP-11445.001.patch
          3 kB
          Ankit Kamboj

        Issue Links

          Activity

            People

              kamboj Ankit Kamboj
              kamboj Ankit Kamboj
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: