无法读取key_validation_class ='CompositeType(UTF8Type,UTF8Type)'

时间:2012-11-26 11:06:56

标签: cassandra thrift

我试图读取cassandra 1.1.6。这是cassandra-cli中的脚本

CREATE COLUMN FAMILY aaa
with column_type = 'Standard'
and comparator = 'UTF8Type'
and default_validation_class = 'UTF8Type'
and key_validation_class = 'CompositeType(UTF8Type,UTF8Type)';

当我尝试用节俭阅读

c1.getColumn().getValue()

client.get_slice(toByteBuffer(rowKey), parent, predicate, ConsistencyLevel.ONE);

我收到以下例外:

Exception in thread "main" InvalidRequestException(why:Not enough bytes to read value of component 0) 

0 个答案:

没有答案