You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2006/09/13 19:05:23 UTC

[jira] Resolved: (HADOOP-529) SequenceFile fails task with NullPointerException in codec initialization

     [ http://issues.apache.org/jira/browse/HADOOP-529?page=all ]

Doug Cutting resolved HADOOP-529.
---------------------------------

    Resolution: Fixed

I just committed this.  Thanks, Owen!

> SequenceFile fails task with NullPointerException in codec initialization
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-529
>                 URL: http://issues.apache.org/jira/browse/HADOOP-529
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.6.0
>            Reporter: Sanjay Dahiya
>         Assigned To: Owen O'Malley
>            Priority: Blocker
>             Fix For: 0.6.1
>
>         Attachments: seq-file-codec-init.patch
>
>
> Sequence file fails in following block of code in 0.6 hadoop ( Sep 13th trunk ) - 
>       if (decompress) {
>         valInFilter = this.codec.createInputStream(valBuffer);   ---> throws NullPointerException
> this.codec is apparently not initialized in 
>       if (version >= CUSTOM_COMPRESS_VERSION && this.decompress) {    
>         try {
>           this.codec = (CompressionCodec)  <---- Init code. 
> and is used later. It should probably check for version also before using the this.codec. 
> 2006-09-13 07:37:55,010 INFO org.apache.hadoop.mapred.TaskInProgress: Error from task_0003_m_001601_0: java.lang.NullPointerException
>         at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1001)
>         at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:933)
>         at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:924)
>         at org.apache.hadoop.mapred.SequenceFileRecordReader.<init>(SequenceFileRecordReader.java:37)
>         at org.apache.hadoop.mapred.SequenceFileInputFormat.getRecordReader(SequenceFileInputFormat.java:53)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:175)
>         at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1066)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira