cassandra映射,无法将字符串解码为UTF8:

cassandra映射,无法将字符串解码为UTF8:,cassandra,cassandra-2.0,cassandra-2.1,Cassandra,Cassandra 2.0,Cassandra 2.1,我试图将二进制数据存储到Cassandra数据库中,下面是描述 CREATE TABLE first.block ( uuid text PRIMARY KEY, data map<bigint, blob> ) WITH bloom_filter_fp_chance = 0.01 AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' AND commen

我试图将二进制数据存储到Cassandra数据库中,下面是描述

CREATE TABLE first.block (
        uuid text PRIMARY KEY,
        data map<bigint, blob>
) WITH bloom_filter_fp_chance = 0.01
        AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
        AND comment = ''
        AND compaction = {'class':         'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'}
        AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
        AND dclocal_read_repair_chance = 0.1
    AND default_time_to_live = 0
    AND gc_grace_seconds = 864000
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair_chance = 0.0
    AND speculative_retry = '99.0PERCENTILE';
CREATE TABLE first.block(
uuid文本主键,
数据图
)使用bloom_过滤器时,fp_概率=0.01
和缓存=“{”键“:“所有”,“每个分区的行“:“无”}”
和注释=“”
AND compression={'class':'org.apache.cassandra.db.compression.SizeTieredCompactionStrategy'}
压缩={'sstable_compression':'org.apache.cassandra.io.compress.LZ4Compressor'}
和dclocal\u read\u repair\u chance=0.1
并且默认的\u time\u to\u live=0
gc_grace_秒=864000
最大指数间隔=2048
和memtable_flush_period_in_ms=0
最小索引间隔=128
并读取_repair_chance=0.0
推测性_重试='99.0百分位';
我试图保存blob类型的数据,但在尝试为Cassandra的C驱动程序写入数据时,出现错误,无法将字符串解码为UTF8:,
我认为对于blob类型,不需要验证,因为它是字节类型。 我对卡桑德拉很陌生,请帮帮我,
谢谢

请将您的插入声明添加到您的问题中。您知道,您应该“保持集合较小,以防止查询过程中出现延迟,因为Cassandra会读取整个集合。”(从)?实际上,发布用于插入数据的c代码。你也应该考虑使用一个UUID类型来主键。谢谢所有的评论,问题是我曾经尝试用一些旧的SQL样式来处理插入查询,一旦我使用了CasyStastMyBundCopyType()方法。问题似乎已解决。请在问题中添加插入语句。您知道,您应该“保持集合较小,以防止查询过程中出现延迟,因为Cassandra会读取整个集合。”(从)?实际上,发布用于插入数据的c代码。你也应该考虑使用一个UUID类型来主键。谢谢所有的评论,问题是我曾经尝试用一些旧的SQL样式来处理插入查询,一旦我使用了CasyStastMyBundCopyType()方法。这个问题似乎已经解决了。