cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "LiveSchemaUpdates" by JonHermes
Date Tue, 07 Dec 2010 17:59:24 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "LiveSchemaUpdates" page has been changed by JonHermes.
http://wiki.apache.org/cassandra/LiveSchemaUpdates?action=diff&rev1=13&rev2=14

--------------------------------------------------

  {{{
  $ cat schema.txt
  /* Create a new keyspace */
- create keyspace Keyspace1 with replication_factor = 3 and placement_strategy = 'org.apache.cassandra.locator.RackUnawareStrategy'
+ create keyspace Keyspace1 with replication_factor = 3 and placement_strategy = 'org.apache.cassandra.locator.RackUnawareStrategy';
  
  /* Switch to the new keyspace */
- use Keyspace1
+ use Keyspace1;
  
  /* Create new column families */
- create column family Standard1 with column_type = 'Standard' and comparator = 'BytesType'
+ create column family Standard1 with column_type = 'Standard' and comparator = 'BytesType';
- create column family Standard2 with column_type = 'Standard' and comparator = 'UTF8Type'
and rows_cached = 10000
+ create column family Standard2 with column_type = 'Standard' and comparator = 'UTF8Type'
and rows_cached = 10000;
  $ bin/cassandra-cli --host localhost --batch < schema.txt
  }}}
  === Existing Cluster (Upgrade from 0.6) ===

Mime
View raw message