Chinaunix

标题: Cassandra 中LongType类型问题 [打印本页]

作者: OnlyForStudy    时间: 2011-11-11 22:04
标题: Cassandra 中LongType类型问题
如果Cassandra 建表中字段为LongType   在进行插入进报错Cassandra::InvalidRequestException=HASH
如果字段类型为 UTF8Type 就可以成功插入  

我的建表语句为
create column family m01
    with comparator = AsciiType
    and column_metadata =
    [{column_name: name,              validation_class : LongType, index_type: KEYS},
      {column_name: age,          validation_class: LongType},
     {column_name: height,                 validation_class: UTF8Type}
     ]  
     and compression_options={sstable_compression:SnappyCompressor, chunk_length_kb:64};

我的 版本是  apache-cassandra-1.0.2




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2