Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1A2B1072A for ; Tue, 1 Apr 2014 00:29:32 +0000 (UTC) Received: (qmail 79322 invoked by uid 500); 1 Apr 2014 00:29:32 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 79290 invoked by uid 500); 1 Apr 2014 00:29:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 79127 invoked by uid 99); 1 Apr 2014 00:29:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 00:29:16 +0000 Date: Tue, 1 Apr 2014 00:29:16 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-6963) hadoop_cql3_wordcount example : inconsistent schema definitions means writing results to Cassandra fails. 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/CASSANDRA-6963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-6963. --------------------------------------- Resolution: Duplicate Fix Version/s: (was: 2.0.6) should be fixed in current 2.0 HEAD as of CASSANDRA-6793 > hadoop_cql3_wordcount example : inconsistent schema definitions means writing results to Cassandra fails. > --------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-6963 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6963 > Project: Cassandra > Issue Type: Bug > Components: Examples > Environment: Ubuntu 12.04, Java version 1.7.0_51 > Reporter: yizhou > Priority: Minor > Attachments: Screen Shot 2014-03-31 at 5.28.26 PM.png > > Original Estimate: 1h > Remaining Estimate: 1h > > The schema defined in WordCountSetup.java specifies 'row_id' as primary key for output_words. Ultimately, this is inconsistent with the assumed schema in WordCount.java. What ends up happening is that within the O.A.C.hadoop.cql3.CqlRecordWriter class, the getPartitionKey function returns null when trying looking up the primary key as 'row_id'. This propagates eventually causing a NullPointerException. The results of wordcount are not recorded in Cassandra as a result. > This error can be reproduced on cassandra 2.0.6 by building cassandra, building the hadoop_cql3_wordcount example, and then running word_count_setup and word_count. > I attached a patch which modifies the output_words schema so that every runs out of the box. > I attached a screenshot of the exception stack. -- This message was sent by Atlassian JIRA (v6.2#6252)