Skip to content

Instantly share code, notes, and snippets.

@mshuler
Created April 1, 2019 16:35
Show Gist options
  • Save mshuler/2cf54384669c295d34a21af4ddfaaeb3 to your computer and use it in GitHub Desktop.
Save mshuler/2cf54384669c295d34a21af4ddfaaeb3 to your computer and use it in GitHub Desktop.
CREATE KEYSPACE foo ...
(cassandra-3.0)mshuler@hana:~/git/cassandra$ ./bin/cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.0.19-SNAPSHOT | CQL spec 3.4.0 | Native protocol v4]
Use HELP for help.
cqlsh> DESC CLUSTER ;
Cluster: Test Cluster
Partitioner: Murmur3Partitioner
cqlsh> CREATE KEYSPACE foo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
cqlsh> DESC KEYSPACE foo ;
CREATE KEYSPACE foo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
cqlsh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment