incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain HARDOUIN <romain.hardo...@urssaf.fr>
Subject Re: Correct way to set strategy options in cqlsh?
Date Wed, 23 May 2012 06:33:06 GMT
You *must* remove the hyphen.
According to the csql 2.0 documentation, here is the correct syntax to 
create keyspace:

<createKeyspaceStatement> ::= "CREATE" "KEYSPACE" <name>
                                 "WITH" <optionName> "=" <optionVal>
                                 ( "AND" <optionName> "=" <optionVal> )*
                            ;
<optionName> ::= <identifier>
               | <optionName> ":" <identifier>
               | <optionName> ":" <integer>
               ;
<optionVal> ::= <stringLiteral>
              | <identifier>
              | <integer>
              ;

The string "strategy_options:us-west=1;" matches the following syntax:

<optionName> ":" <identifier> = <integer>

Thus, "us-west" is an *identifier*, and again according to the 
documentation:
An <identifier> is a letter followed by any sequence of letters, digits, 
or the underscore (_).
Mime
View raw message