You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "B. Todd Burruss (JIRA)" <ji...@apache.org> on 2012/12/01 21:29:58 UTC

[jira] [Commented] (CASSANDRA-5006) Cannot create keyspaces using CQL 3

    [ https://issues.apache.org/jira/browse/CASSANDRA-5006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508043#comment-13508043 ] 

B. Todd Burruss commented on CASSANDRA-5006:
--------------------------------------------

ok, thx - missed the note at the top of the page.  but seems that the
spec version should have changed if the syntax changed


                
> Cannot create keyspaces using CQL 3
> -----------------------------------
>
>                 Key: CASSANDRA-5006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5006
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Documentation & website
>    Affects Versions: 1.2.0 beta 2
>         Environment: cqlsh 2.3.0
> cassandra server 1.2.0-beta2
> also tried from tip of cassandra-1.2 branch
>            Reporter: B. Todd Burruss
>            Priority: Trivial
>
> following examples shown here:  http://cassandra.apache.org/doc/cql3/CQL.html#createKeyspaceStmt
> tburruss@tburruss-mint-13 ~ $ /btoddb/apache-cassandra-1.2.0-beta2/bin/cqlsh
> Connected to Test Cluster at localhost:9160.
> [cqlsh 2.3.0 | Cassandra 1.2.0-beta2 | CQL spec 3.0.0 | Thrift protocol 19.35.0]
> Use HELP for help.
> cqlsh> CREATE KEYSPACE Excelsior
>    ...            WITH strategy_class = SimpleStrategy
>    ...             AND strategy_options:replication_factor = 1;
> Bad Request: line 3:32 mismatched input ':' expecting '='
> cqlsh> CREATE KEYSPACE Excalibur
>    ...            WITH strategy_class = NetworkTopologyStrategy
>    ...             AND strategy_options:DC1 = 1
>    ...             AND strategy_options:DC2 = 3;
> Bad Request: line 4:32 mismatched input ':' expecting '='
> cqlsh> 
> same CQL statements work fine if use "-2" option to force CQL 2
> tburruss@tburruss-mint-13 ~ $ /btoddb/apache-cassandra-1.2.0-beta2/bin/cqlsh -2
> Connected to Test Cluster at localhost:9160.
> [cqlsh 2.3.0 | Cassandra 0.0.0 | CQL spec 2.0.0 | Thrift protocol 19.35.0]
> Use HELP for help.
> cqlsh> CREATE KEYSPACE Excelsior
>    ...            WITH strategy_class = SimpleStrategy
>    ...             AND strategy_options:replication_factor = 1;
> cqlsh> CREATE KEYSPACE Excalibur
>    ...            WITH strategy_class = NetworkTopologyStrategy
>    ...             AND strategy_options:DC1 = 1
>    ...             AND strategy_options:DC2 = 3;
> cqlsh> 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira