我试图读取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)