cassandra - 创建密钥空间时出现错误“无法找到复制策略类 'org.apache.cassandra.locator.simplestrategy”
问题描述
我已经安装了“Apache Cassandra 3.9.0 的 DataStax 发行版”。打开 cassandra CQL shell 后,我运行了以下命令
Create keyspace KeyspaceName
with replicaton{'class':'simplestrategy','replication_factor': 1}
但我收到一个错误:
Unable to find replication strategy class 'org.apache.cassandra.locator.simplestrategy'
解决方案
复制策略类名称在 CQL 中区分大小写,复制因子为 1 的 SimpleStrategy 的正确语法是:
CREATE KEYSPACE my_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}
推荐阅读
- php - 获取域详细信息的问题
- powershell - Powershell 注册表搜索和编辑
- mysql - 是否可以使用 django 模型将数组存储在 mysql 数据库中?
- python-3.x - 不同的 Selenium 版本有哪些改进
- mysql - 如何防止 SELECT 在另一个事务完成之前读取表
- python - 如何使用 currentIndex() 获取 itemFromIndex 中项目的另一个值?
- c# - MapHub to specific route
- excel - Summing specific rows in a column based on a condition
- amazon-web-services - Connect two VPC via AWS transit gateway Cloudformation
- python - 已安装 numpy 但无法导入