【发布时间】: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