我已经安装了“Apache Cassandra 3.9.0 的 DataStax Distribution”。 打开 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}
关于cassandra - 创建键空间时出现错误 "Unable to find replication strategy class ' org.apache.cassandra.locator.simplestrategy",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52036484/