【问题标题】:index_not_found_exeception. elassandraindex_not_found_exeception。埃拉桑德拉
【发布时间】:2018-02-21 22:50:05
【问题描述】:

cqlsh> 创建密钥空间 twitter WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };

cqlsh> 创建表 twitter.user ( 名称文本, 属性图, 主键(名称) );

cqlsh> INSERT INTO twitter.user (name,attrs) VALUES ('bob',{'email':'bob@gmail.com','firstname':'bob'});

【问题讨论】:

  • 您必须先 PUT 索引,然后再执行 PUT 进行映射。

标签: elasticsearch cassandra cqlsh elassandra


【解决方案1】:

你当时使用了错误的类来创建它应该是'NetworkTopologyStrategy'的键空间

CREATE KEYSPACE IF NOT EXISTS twitter WITH replication={ 'class':'NetworkTopologyStrategy', 'dc1':'1' };

并更改数据中心的名称 ('dc1') 使用 nodetool status 检查名称。区分大小写!!!

就我而言,我使用DC1 insted of dc1 解决了这个问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-19
    • 2015-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-16
    相关资源
    最近更新 更多