Comments - Cassandra Storage Engine Use Example
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.
Apparently the syntax for creating namespaces in Cassandra changed since this article was written three years ago.
Some of the other responses here tell you how to use the old syntax using various options when starting cqlsh.
Here's the updated equivalent command, with Cassandra 3.7 | CQL spec 3.4.2:
CREATE KEYSPACE mariadbtest2 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} AND durable_writes = true;I have a cassandra with 100k columns and with compact storage, however i still cant make this work
i get
any idea what could this be ?
If you run:
and then try to connect a SQL table, you will get:
Because MariaDB uses deprecated thrift driver You have to add a WITH COMPACT STORAGE option to the create columnfamily query:
Connecting SQL table does not work as shown:
One should change the Primary Key to pk:
The above example does not work when running cqlsh with the -3 option.
One must run cqlsh with the -2 option: