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 you are
using. It might also be nice for DataStax to update the 1.1
documentation with a warning.
--
*Colin Blower*
On 01/22/2013 04:06 AM, Paul van Hoven wrote:
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 <[email protected]>:
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
<[email protected]> wrote:
CREATE KEYSPACE demodb WITH strategy_class = 'SimpleStrategy'
AND strategy_options:replication_factor='1';