I have installed "DataStax Distribution of Apache Cassandra 3.9.0". After opening cassandra CQL shell i ran the below command
Create keyspace KeyspaceName
with replicaton{'class':'simplestrategy','replication_factor': 1}
But i am getting an error:
Unable to find replication strategy class 'org.apache.cassandra.locator.simplestrategy'
The replication strategy class name is case sensitive in CQL, the correct syntax for a SimpleStrategy with replication factor of 1 is:
CREATE KEYSPACE my_keyspace
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}
Cassandra is case sensitive so you should use SimpleStrategy instead of simplestrategy and no spaces in between are appreciated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With