Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 61788 invoked from network); 13 Nov 2010 05:58:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 05:58:05 -0000 Received: (qmail 17845 invoked by uid 500); 13 Nov 2010 05:58:37 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 17577 invoked by uid 500); 13 Nov 2010 05:58:36 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 17569 invoked by uid 99); 13 Nov 2010 05:58:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 05:58:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 05:58:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAD5wEuI023741 for ; Sat, 13 Nov 2010 05:58:15 GMT Message-ID: <27812979.57691289627894760.JavaMail.jira@thor> Date: Sat, 13 Nov 2010 00:58:14 -0500 (EST) From: "Eli Collins (JIRA)" To: mapreduce-dev@hadoop.apache.org Subject: [jira] Resolved: (MAPREDUCE-1784) IFile should check for null compressor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eli Collins resolved MAPREDUCE-1784. ------------------------------------ Resolution: Fixed Fix Version/s: 0.20.3 Hadoop Flags: [Reviewed] I merged HDFS-727 from trunk into branch-0.20, ran the libhdfs test and committed. > IFile should check for null compressor > -------------------------------------- > > Key: MAPREDUCE-1784 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1784 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.22.0 > Reporter: Eli Collins > Assignee: Eli Collins > Priority: Minor > Fix For: 0.20.3, 0.22.0 > > Attachments: mapred-1784-1.patch > > > IFile assumes that when it has a codec it can always get a compressor. This fails when mapred.compress.map.output is true but the native libraries are not installed, resulting in an NPE: > {code} > java.lang.NullPointerException > at org.apache.hadoop.mapred.IFile$Writer.(IFile.java:102) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1198) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1091) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:359) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) > at org.apache.hadoop.mapred.Child.main(Child.java:170) > {code} > Let's make IFile handle this case by logging and using non-compressed streams.l -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.