1

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'">

1 Answer 1

4

The manual for CREATE KEYSPACE shows how to use this correctly.

CREATE KEYSPACE Excelsior WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, I did CREATE KEYSPACE Excelsior WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 }; and it worked

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.