cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Cassandra Wiki] Update of "LiveSchemaUpdates" by RomainHardouin
Date Tue, 05 Oct 2010 13:08:50 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 RomainHardouin.
The comment on this change is: mv placement_strategy replica_placement_strategy.


  $ 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 replica_placement_strategy = 'org.apache.cassandra.locator.RackUnawareStrategy'
  /* Switch to the new keyspace */
  use Keyspace1
@@ -76, +76 @@

  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) ===
  To provide some backwards compatibility, we've provided a JMX method in the `StorageServiceMBean`
that can be used to manually load schema definitions from storage-conf.xml.  This is a one-shot
operation though, and will only work on a system that contains no existing migrations.  If
you are upgrading a cluster, you will probably only have to do this for one node (a seed).
 Gossip will take care of promulgating the changes to the rest of the nodes as they come online.

View raw message