You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chander S Pechetty (JIRA)" <ji...@apache.org> on 2014/03/02 14:42:19 UTC

[jira] [Created] (CASSANDRA-6793) NPE in Hadoop Word count example

Chander S Pechetty created CASSANDRA-6793:
---------------------------------------------

             Summary: NPE in Hadoop Word count example
                 Key: CASSANDRA-6793
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6793
             Project: Cassandra
          Issue Type: Bug
          Components: Examples
            Reporter: Chander S Pechetty
            Priority: Minor


The partition keys requested in WordCount.java do not match the primary key set up in the table output_words. It looks this patch was not merged properly from [CASSANDRA-5622|https://issues.apache.org/jira/browse/CASSANDRA-5622].The attached patch addresses the NPE and uses the correct keys defined in #5622.

I am assuming there is no need to fix the actual NPE like throwing an InvalidRequestException back to user to fix the partition keys, as it would be trivial to get the same from the TableMetadata using the driver API.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)