Jump to: navigation, search

MagnetoDB/QA/Tests on local env workflow

All local environment without CCM and Devstack

1. Download Cassandra 2.0.6

2. Run Cassandra single node instance

$ cd apache-cassandra-2.0.6/bin
$ sudo ./cassandra -f

3. Run CQLSH

$ cd apache-cassandra-2.0.6/bin
$ ./cqlsh

create service keyspaces and table

cqlsh> CREATE KEYSPACE magnetodb  WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
cqlsh> CREATE TABLE magnetodb.table_info(tenant text, name text, exists int, "schema" text, status text, internal_name text, PRIMARY KEY(tenant, name));
cqlsh> CREATE KEYSPACE user_default_tenant  WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };