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

conf not set for the default Codec when initializing a Reader for a record-compressed sequence file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.10.0
    • Component/s: io
    • Labels:
      None

      Description

      Because the conf field of a default Codec does not get set when initializing a reader for a record-compressed sequence file, a NullPointerException is thrown when attempting to create an input stream for the default Codec as shown in the following stack trace:

      java.lang.NullPointerException
      at org.apache.hadoop.io.compress.DefaultCodec.createInputStream(DefaultCodec.java:59)
      at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1004)
      at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:927)
      at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:918)
      at org.apache.hadoop.mapred.SequenceFileRecordReader.(SequenceFileRecordReader.java:39)
      at org.apache.hadoop.mapred.SequenceFileInputFormat.getRecordReader(SequenceFileInputFormat.java:55)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:180)
      at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1388)

        Attachments

          Activity

            People

            • Assignee:
              hairong Hairong Kuang
              Reporter:
              hairong Hairong Kuang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: