incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damick, Jeffrey" <Jeffrey.Dam...@neustar.biz>
Subject Re: Correct way to set strategy options in cqlsh?
Date Wed, 23 May 2012 13:29:21 GMT
Since this is the EC2MultiRegionSnitch, how do you suggest I change name?  It needs to match
the datacenter name that is bound to aws region names, so it seems like this is a bug to me..




On 5/23/12 2:33 AM, "Romain HARDOUIN" <romain.hardouin@urssaf.fr> wrote:


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