keyspace-cycling

  ALTER KEYSPACE cycling
  WITH REPLICATION = {
    'class' : 'NetworkTopologyStrategy',
    'SearchAnalytics' : 1
  };
  ALTER KEYSPACE cycling
  WITH REPLICATION = {
      'class' : 'NetworkTopologyStrategy',
      'DC1' : 3,
      'DC2' : 2
  };
  CREATE KEYSPACE "Cycling"
  WITH REPLICATION = {
    'class' : 'NetworkTopologyStrategy',
    'boston'  : 3 , // Datacenter 1
    'seattle' : 2 , // Datacenter 2
    'tokyo'   : 2   // Datacenter 3
  };
  CREATE KEYSPACE IF NOT EXISTS cycling
  WITH REPLICATION = {
    'class' : 'NetworkTopologyStrategy',
    'datacenter1': '3',
    'datacenter2': '3'
  };
CREATE KEYSPACE cycling
WITH REPLICATION = {
  'class' : 'NetworkTopologyStrategy',
  'datacenter1' : 1
};
  CREATE KEYSPACE cycling
  WITH REPLICATION = {
    'class' : 'NetworkTopologyStrategy',
    'datacenter1' : 3
  }
  AND DURABLE_WRITES = false;
CREATE KEYSPACE IF NOT EXISTS cycling
WITH REPLICATION = {
  'class' : 'SimpleStrategy',
  'replication_factor' : 1
};
DESCRIBE KEYSPACES;
  DESCRIBE KEYSPACE cycling;
  DESCRIBE KEYSPACE cycling;
  DESCRIBE KEYSPACE cycling;
  DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
  DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DROP KEYSPACE cycling;
DROP KEYSPACE IF EXISTS cycling;
  USE cycling;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com