Re: Creating a keyspace fails

2013-01-22 Thread Tyler Hobbs
I sent a note to our docs team to add a warning/note to the docs there about the difference between the syntax in 1.1 and 1.2. Thanks! On Tue, Jan 22, 2013 at 10:49 AM, Colin Blower wrote: > You were most likely looking at the wrong documentation. The syntax for > CQL3 changed between Cassandr

Re: Creating a keyspace fails

2013-01-22 Thread Colin Blower
You were most likely looking at the wrong documentation. The syntax for CQL3 changed between Cassandra 1.1 and 1.2. When I google "cassandra CQL3" the first result is Cassandra 1.1 documentation about CQL3, which is wrong for 1.2. Make sure you are looking at the documentation for the version

Re: Creating a keyspace fails

2013-01-22 Thread Paul van Hoven
Alright. Thanks for you quick help. :) 2013/1/22 Jason Wee : > maybe typo or forget to update the doc... but anyway, you can use the help > command when you are in cqlsh.. for example: > > cqlsh> HELP CREATE_KEYSPACE; > > CREATE KEYSPACE > WITH replication = {'class':'' [,'':]

Re: Creating a keyspace fails

2013-01-22 Thread Jason Wee
maybe typo or forget to update the doc... but anyway, you can use the help command when you are in cqlsh.. for example: cqlsh> HELP CREATE_KEYSPACE; CREATE KEYSPACE WITH replication = {'class':'' [,'':]}; On Tue, Jan 22, 2013 at 8:06 PM, Paul van Hoven < paul.van.ho...@goo

Re: Creating a keyspace fails

2013-01-22 Thread Paul van Hoven
Okay, that worked. Why is the statement from the tutorial wrong. I mean, why would a company like datastax post somthing like this? 2013/1/22 Jason Wee : > cqlsh> CREATE KEYSPACE demodb WITH replication = {'class': 'SimpleStrategy', > 'replication_factor': 3}; > cqlsh> use demodb; > cqlsh:demodb>

Re: Creating a keyspace fails

2013-01-22 Thread Jason Wee
cqlsh> CREATE KEYSPACE demodb WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3}; cqlsh> use demodb; cqlsh:demodb> On Tue, Jan 22, 2013 at 7:04 PM, Paul van Hoven < paul.van.ho...@googlemail.com> wrote: > CREATE KEYSPACE demodb WITH strategy_class = 'SimpleStrategy' > AND st

Creating a keyspace fails

2013-01-22 Thread Paul van Hoven
I just started with cassandra. Currently I'm reading the following tutorial about cal: http://www.datastax.com/docs/1.1/dml/using_cql#use-cql But I already fail when trying to create a keyspace: $ ./cqlsh --cql3 Connected to Test Cluster at localhost:9160. [cqlsh 2.3.0 | Cassandra 1.2.0 | CQL sp