Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 61553 invoked from network); 1 Jul 2008 09:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 09:22:39 -0000 Received: (qmail 58464 invoked by uid 500); 1 Jul 2008 09:22:37 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 58404 invoked by uid 500); 1 Jul 2008 09:22:37 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 58388 invoked by uid 99); 1 Jul 2008 09:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 02:22:37 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 09:21:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FE52234C158 for ; Tue, 1 Jul 2008 02:21:45 -0700 (PDT) Message-ID: <1784822763.1214904105588.JavaMail.jira@brutus> Date: Tue, 1 Jul 2008 02:21:45 -0700 (PDT) From: "Chris Douglas (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3665) WritableComparator newKey() fails for NullWritable In-Reply-To: <795637232.1214775705039.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Douglas updated HADOOP-3665: ---------------------------------- Status: Open (was: Patch Available) > WritableComparator newKey() fails for NullWritable > -------------------------------------------------- > > Key: HADOOP-3665 > URL: https://issues.apache.org/jira/browse/HADOOP-3665 > Project: Hadoop Core > Issue Type: Bug > Components: io > Affects Versions: 0.16.0 > Environment: n/a > Reporter: Lukas Vlcek > Priority: Minor > Fix For: 0.19.0 > > Attachments: 3665-0.patch, 3665-1.patch, HADOOP-3665.path > > > It is not possible to use NullWritable as a key in order to suppress key value in output. > Syndrome exception: > Caused by: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableComparator can not access a member of class org.apache.hadoop.io.NullWritable with modifiers "private" > The problem is that NullWritable is a singleton and does not provide public non-parametric constructor. The following code in WritableComparator causes the exception: return (WritableComparable)keyClass.newInstance(); > Proposed simple solution is to use ReflectionUtils instead (it requires modification as well). > This issue is probably related to HADOOP-2922 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.