cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-5488) CassandraStorage throws NullPointerException (NPE) when widerows is set to 'true'
Date Wed, 22 May 2013 16:23:21 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brandon Williams resolved CASSANDRA-5488.
-----------------------------------------

    Resolution: Fixed

v2 was a little too aggressive in function consolidation.  I reverted it and applied v1.
                
> CassandraStorage throws NullPointerException (NPE) when widerows is set to 'true'
> ---------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5488
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5488
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.1.9, 1.2.4
>         Environment: Ubuntu 12.04.1 x64, Cassandra 1.2.4
>            Reporter: Sheetal Gosrani
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>              Labels: cassandra, hadoop, pig
>             Fix For: 1.1.12, 1.2.6
>
>         Attachments: 5488-2.txt, 5488.txt
>
>
> CassandraStorage throws NPE when widerows is set to 'true'. 
> 2 problems in getNextWide:
> 1. Creation of tuple without specifying size
> 2. Calling addKeyToTuple on lastKey instead of key
> java.lang.NullPointerException
>     at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:167)
>     at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:124)
>     at org.apache.cassandra.cql.jdbc.JdbcUTF8.getString(JdbcUTF8.java:73)
>     at org.apache.cassandra.cql.jdbc.JdbcUTF8.compose(JdbcUTF8.java:93)
>     at org.apache.cassandra.db.marshal.UTF8Type.compose(UTF8Type.java:34)
>     at org.apache.cassandra.db.marshal.UTF8Type.compose(UTF8Type.java:26)
>     at org.apache.cassandra.hadoop.pig.CassandraStorage.addKeyToTuple(CassandraStorage.java:313)
>     at org.apache.cassandra.hadoop.pig.CassandraStorage.getNextWide(CassandraStorage.java:196)
>     at org.apache.cassandra.hadoop.pig.CassandraStorage.getNext(CassandraStorage.java:224)
>     at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:194)
>     at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:532)
>     at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
>     at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
>     at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
>     at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
>     at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at javax.security.auth.Subject.doAs(Subject.java:415)
>     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
>     at org.apache.hadoop.mapred.Child.main(Child.java:249)
> 2013-04-16 12:28:03,671 INFO org.apache.hadoop.mapred.Task: Runnning cleanup for the
task

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message