Cassandra 数据库, python cqlsh命令

★  cql操作数据库(cqlsh.bat: python cqlsh命令操作<优缺点:https://blog.csdn.net/vbirdbest/article/details/77662727>):

   https://www.cnblogs.com/piaolingzxh/p/4197833.html  ★★★

  https://blog.csdn.net/chinabestchina/article/details/81953045

★ 实战:

  https://www.cnblogs.com/valleylord/p/3693306.html

★ java操作之

https://blog.csdn.net/wsxiaoqiaoliushui/article/details/19834567      java操作之1

https://blog.csdn.net/fenglibing/article/details/9411021          java操作之2

★ python cqlsh命令:

创建keyspace(https://www.cnblogs.com/feiyun126/p/6144294.html, https://blog.csdn.net/u012965373/article/details/51779484):
CREATE KEYSPACE knet WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
Replication Factor : 复制因数。 表示一份数据在一个DC 之中包含几份。常用奇数~ 比如我们项目组设置的replication_factor=3
Replica placement strategy : 复制策略。 默认的是SimpleStrategy. 如果是单机架、单数据中心的模式,保持使用SimpleStrtegy即可。

猜你喜欢

转载自www.cnblogs.com/hahajava/p/9651811.html
今日推荐