Unfortunately one of the first command everyone needs to use to use to work
with cassandra changes very often.
You can use
cqlsh> help create_keyspace;
But some times even the documentation is not in line.
Using this permutation of goodness:
cqlsh 2.3.0 | Cassandra 1.2.0-beta2-SNAPSHOT | CQL spec 3.0.0 | Thrift
protocol 19.35.0]
The syntax is as follows:
cqlsh> create keyspace a with replication = {'class':'SimpleStrategy',
'replication_factor':3};
On Sun, Dec 23, 2012 at 10:15 AM, Manu Zhang <[email protected]>wrote:
> I'm wondering why the following command to create a keyspace in CQL3 fails.
> It is same as the sample in the doc
> http://cassandra.apache.org/doc/cql3/CQL.html
>
> CREATE KEYSPACE demodb
> WITH strategy_class = SimpleStrategy
> AND strategy_options:replication_factor = 1;
>
>
> I'm using Cassandra1.2-beta2
>
>