Ubuntu 无法从Cassandra检索数据

Ubuntu 无法从Cassandra检索数据,ubuntu,cassandra,Ubuntu,Cassandra,退出cli后,我无法从Cassandra检索数据。当我返回到另一个会话中获取数据时,会出现以下错误: org.apache.cassandra.db.marshal.MarshalException:无法将“jsmith”解析为十六进制字节 似乎列族保持不变,键空间也保持不变 我还将密钥格式更改为ascii(假设用户密钥为ascii;)。。。而这也不是固定不变的 有什么原因吗?发生了什么?所有“假定”命令都是临时的,仅限于一个cli会话。对于那些现在没有坐在cli前面的人,我们指的是: assu

退出cli后,我无法从Cassandra检索数据。当我返回到另一个会话中获取数据时,会出现以下错误:

org.apache.cassandra.db.marshal.MarshalException:无法将“jsmith”解析为十六进制字节

似乎列族保持不变,键空间也保持不变

我还将密钥格式更改为ascii(假设用户密钥为ascii;)。。。而这也不是固定不变的

有什么原因吗?发生了什么?

所有“假定”命令都是临时的,仅限于一个cli会话。对于那些现在没有坐在cli前面的人,我们指的是:

assume <cf> comparator as <type>;
assume <cf> sub_comparator as <type>;
assume <cf> validator as <type>;
assume <cf> keys as <type>;

Assume one of the attributes (comparator, sub_comparator, validator or keys)
of the given column family match specified type. The specified type will
be used when displaying data returned from the column family.
这在三个方面与“假设”不同:

  • 它被永久记录在卡桑德拉
  • Cassandra将对插入的数据强制执行指定的类型
  • 所有客户端都可以查询和使用此元数据,而不仅仅是cli
  • 假设它主要用于解决无法更新为使用“真实”服务器端类型的旧数据集

    create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type;