cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Trama (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5234) Table created through CQL3 are not accessble to Pig 0.10
Date Tue, 30 Jul 2013 01:55:48 GMT


Marcos Trama commented on CASSANDRA-5234:

Cassandra 1.2.8 was released (after regression in 1.2.7), but this last patch for counters
appears to be left. Anyone can confirm this?

I downloaded the .deb from but when in grunt i dump a table
with counter column, get the error:

	at java.nio.Buffer.checkIndex(
	at java.nio.HeapByteBuffer.getLong(
	at org.apache.cassandra.db.marshal.AbstractCommutativeType.compose(
	at org.apache.cassandra.db.marshal.AbstractCommutativeType.compose(
	at org.apache.cassandra.hadoop.pig.AbstractCassandraStorage.columnToTuple(
	at org.apache.cassandra.hadoop.pig.CqlStorage.getNext(
	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(
	at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(
	at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(
	at org.apache.hadoop.mapred.MapTask.runNewMapper(
	at org.apache.hadoop.mapred.Child$
	at Method)
	at org.apache.hadoop.mapred.Child.main(

My table:
cqlsh:test> desc table votes_count_period3;

CREATE TABLE votes_count_period3 (
  period text,
  poll timeuuid,
  votes counter,
  PRIMARY KEY (period, poll)
  bloom_filter_fp_chance=0.010000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  populate_io_cache_on_flush='false' AND
  compaction={'class': 'SizeTieredCompactionStrategy'} AND
  compression={'sstable_compression': 'SnappyCompressor'};

> Table created through CQL3 are not accessble to Pig 0.10
> --------------------------------------------------------
>                 Key: CASSANDRA-5234
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.2.1
>         Environment: Red hat linux 5
>            Reporter: Shamim Ahmed
>            Assignee: Alex Liu
>             Fix For: 1.2.7
>         Attachments: 5234-1-1.2-patch.txt, 5234-1.2-patch.txt, 5234-2-1.2branch.txt,
5234-3-1.2branch.txt, 5234-3-trunk.txt, 5234.tx, fix_where_clause.patch, pigCounter-patch.txt
> Hi,
>   i have faced a bug when creating table through CQL3 and trying to load data through
pig 0.10 as follows:
> java.lang.RuntimeException: Column family 'abc' not found in keyspace 'XYZ'
> 	at org.apache.cassandra.hadoop.pig.CassandraStorage.initSchema(
> 	at org.apache.cassandra.hadoop.pig.CassandraStorage.setLocation(
> This effects from Simple table to table with compound key. 

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:

View raw message