prem30488
prem30488

Reputation: 2856

SyntaxException: <ErrorMessage code=2000 [Syntax error in CQL query] message="Un known property 'replication_factor'">

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

Answers (1)

doanduyhai
doanduyhai

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

Related Questions