Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-4181

Hadoop on CF with ColumnCounter columns fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None
    • None
    • Low

    Description

      Accessing CounterColumn from Hadoop fails with an exception:

       
      java.lang.RuntimeException: java.lang.NullPointerException
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.maybeInit(ColumnFamilyRecordReader.java:456)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.computeNext(ColumnFamilyRecordReader.java:462)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.computeNext(ColumnFamilyRecordReader.java:409)
              at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140)
              at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader.nextKeyValue(ColumnFamilyRecordReader.java:184)
              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.LocalJobRunner$Job.run(LocalJobRunner.java:212)
      Caused by: java.lang.NullPointerException
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator$WideColumnIterator.computeNext(ColumnFamilyRecordReader.java:500)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator$WideColumnIterator.computeNext(ColumnFamilyRecordReader.java:472)
              at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140)
              at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135)
              at com.google.common.collect.Iterators$PeekingImpl.hasNext(Iterators.java:1080)
              at org.apache.cassandra.hadoop.ColumnFamilyRecordReader$WideRowIterator.maybeInit(ColumnFamilyRecordReader.java:449)
              ... 11 more
      

      Attachments

        1. cassandra-4181.patch
          1.0 kB
          Marco Cova

        Activity

          People

            marcocova Marco Cova
            marcocova Marco Cova
            Marco Cova
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: