I agree, this is a bug. I opened https://issues.apache.org/jira/browse/CASSANDRA-4278 to track it.
The workaround for now is to use the CLI or the thrift interface to create your keyspace. p On Wed, May 23, 2012 at 8:29 AM, Damick, Jeffrey <jeffrey.dam...@neustar.biz > wrote: > 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.hardo...@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 (_). > >