error running cassandra-cli to create keyspace

188 views
Skip to first unread message

smh

unread,
Sep 19, 2011, 11:26:21 PM9/19/11
to Brisk Users
Hi,
I have a brisk cluster of 5 nodes in which i have 3 cassandra nodes
and 2 brisk nodes. The nodes start up just fine and i can confirm that
its a balanced ring. However, when i try to create the keyspace on one
of the cassandra nodes using the
create keyspace <keyspace_name> with replication_factor=3 and
placement_strategy='org.apache.cassandra.locator.SimpleStrategy';

Below is the exception. What am i doing wrong?

No enum const class org.apache.cassandra.cli.CliClient
$AddKeyspaceArgument.REPLICATION_FACTOR
java.lang.RuntimeException: No enum const class
org.apache.cassandra.cli.CliClient
$AddKeyspaceArgument.REPLICATION_FACTOR
at
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:
297)
at org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:
217)
at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)

Cathy Daw

unread,
Sep 20, 2011, 2:26:33 AM9/20/11
to brisk...@googlegroups.com
This syntax is no longer valid in 0.8:

CREATE keyspace  <keyspace_name> with
  placement_strategy =  'org.apache.cassandra.locator.SimpleStrategy'
  and strategy_options = [{replication_factor:3}];


smh

unread,
Sep 20, 2011, 2:09:25 PM9/20/11
to Brisk Users
I noticed that the schema-sample.txt of the brisk distribution still
retains the old syntax.
Thanks for your response.
Reply all
Reply to author
Forward
0 new messages