Reputation: 2856
I am having error in cassandra while executing following query.
create keyspace testkeyspace with replication_factor=3;
SyntaxException: < ErrorMessage code=2000 [Syntax error in CQL query] message="Un known property 'replication_factor'">
Upvotes: 1
Views: 4726
Reputation: 8812
The manual for CREATE KEYSPACE
shows how to use this correctly.
CREATE KEYSPACE Excelsior WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
Upvotes: 4