Renaming cluster

2011-05-09 Thread Shaun Newman
Hi,

I am trying to rename my cluster which has several keyspaces running on
cassandra 0.7.5.  When I try to remove the system files as suggested by
http://wiki.apache.org/cassandra/FAQ#clustername_mismatch , I get "Could not
read system table. Did you change partitioners?" error. If I remove all the
system files, the cluster does boot up well but I  loose the schema's of all
CFs.

Am I missing something or is this a bug. Can anyone suggest what would be
the right approach?

Many thanks in advance.

Shaun


Re: Renaming cluster

2011-05-10 Thread Shaun Newman
Hi,

Here is the actual error I get when I remove all LocationInfo files:

ERROR 18:05:04,918 Fatal exception during initialization
org.apache.cassandra.config.ConfigurationException: Found system table
files, but they couldn't be loaded. Did you change the partitioner?
at
org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:234)
at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:128)
at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:315)
at
org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79)

Shaun


On Mon, May 9, 2011 at 10:05 PM, aaron morton wrote:

> Can you provide the full error stack, it will show where it failed when
> starting up.
>
> AFAIK this i the correct process. I just did a quick test on a singe 0.7
> node and it could start up after removing the locations SSTables.
>
> If you go ahead with removing all the system sstables you can re-recreate
> the schema and it will pickup the existing files. Also be aware that the
> initial token will be lost unless it is in the conf file.
>
> Hope that helps.
>
> -
> Aaron Morton
> Freelance Cassandra Developer
> @aaronmorton
> http://www.thelastpickle.com
>
>