B. Todd Burruss created CASSANDRA-5006:
------------------------------------------

             Summary: Cannot create keyspaces using CQL 3
                 Key: CASSANDRA-5006
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5006
             Project: Cassandra
          Issue Type: Bug
    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


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

Reply via email to