Comments - Cassandra Storage Engine Use Example

10 years, 11 months ago Robert Wagner

The above example does not work when running cqlsh with the -3 option.

cqlsh:> CREATE KEYSPACE mariadbtest2 WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor='1';
Bad Request: line 1:117 mismatched input ':' expecting '='
Perhaps you meant to use CQL 2? Try using the -2 option when starting cqlsh.

One must run cqlsh with the -2 option:

[root@localhost bin]# ./cqlsh <IPADDRESS of Cassandra> 9160 -2
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.