Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 19497 invoked from network); 17 Oct 2008 00:20:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2008 00:20:41 -0000 Received: (qmail 88832 invoked by uid 500); 17 Oct 2008 00:20:37 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 88789 invoked by uid 500); 17 Oct 2008 00:20:37 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 88778 invoked by uid 99); 17 Oct 2008 00:20:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 17:20:37 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 00:19:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kqd4X-0002Zb-4j for core-user@hadoop.apache.org; Thu, 16 Oct 2008 17:20:05 -0700 Message-ID: <20022848.post@talk.nabble.com> Date: Thu, 16 Oct 2008 17:20:05 -0700 (PDT) From: Dan Benjamin To: core-user@hadoop.apache.org Subject: Problem with MapFile.Reader.get() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dbenjam@amazon.com X-Virus-Checked: Checked by ClamAV on apache.org Firstly, can someone please explain the purpose of the second parameter - Writable val? The Javadocs don't say what this is for and to my understanding this is what the function is supposed to retrieve, isn't it? In my code I'm passing null for the val parameter and seeing the following exception: 08/10/16 20:09:52 INFO mapred.JobClient: Task Id : attempt_200810141831_0036_m_000000_0, Status : FAILED java.lang.NullPointerException at org.apache.hadoop.io.SequenceFile$Reader.getCurrentValue(SequenceFile.java:1754) at org.apache.hadoop.io.MapFile$Reader.get(MapFile.java:523) Is this caused by the fact that I'm passing in null for val or is it something else? I'm using hadoop 0.18.1 if that makes any difference. -- View this message in context: http://www.nabble.com/Problem-with-MapFile.Reader.get%28%29-tp20022848p20022848.html Sent from the Hadoop core-user mailing list archive at Nabble.com.