Swa*_*rup 2 cassandra datastax
我已经安装了“Apache Cassandra 3.9.0 的 DataStax 分发版”。打开 cassandra CQL shell 后,我运行了以下命令
Create keyspace KeyspaceName
with replicaton{'class':'simplestrategy','replication_factor': 1}
Run Code Online (Sandbox Code Playgroud)
但我收到一个错误:
Unable to find replication strategy class 'org.apache.cassandra.locator.simplestrategy'
Run Code Online (Sandbox Code Playgroud)
复制策略类名在 CQL 中区分大小写,复制因子为 1 的 SimpleStrategy 的正确语法是:
CREATE KEYSPACE my_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1765 次 |
最近记录: |