cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brosius <>
Subject Re: cassandra upgrade to 1.1 - migration problem
Date Wed, 16 May 2012 00:41:09 GMT
The replication factor for a keyspace is stored in the 
system.schema_keyspaces column family.

Since you can't view this with cli as the server won't start, the only 
way to look at it, that i know of is to use the

sstable2json tool on the *.db file for that column family...

So for instance on my machine i do


and get

"7374726573735f6b73": [["durable_writes","true",1968197311980145], 

It's likely you don't have a entry from replication_factor.

Theoretically i suppose you could embellish the output, and use 
json2sstable to fix it, but I have no experience here, and would get the 
blessings of datastax fellas, before proceeding.

On 05/15/2012 07:02 PM, Casey Deccio wrote:
> Sorry to reply to my own message (again).  I took a closer look at the 
> logs and realized that the partitioner errors aren't what kept the 
> daemon to stop; those errors are in the logs even before I upgraded.  
> This one seems to be the culprit.
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at 
> Caused by: java.lang.RuntimeException: 
> org.apache.cassandra.config.ConfigurationException: SimpleStrategy 
> requires a replication_factor strategy option.
>         at org.apache.cassandra.db.Table.<init>(
>         at
>         at
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(
>         at 
> org.apache.cassandra.service.AbstractCassandraDaemon.init(
>         ... 5 more
> Caused by: org.apache.cassandra.config.ConfigurationException: 
> SimpleStrategy requires a replication_factor strategy option.
>         at 
> org.apache.cassandra.locator.SimpleStrategy.validateOptions(
>         at 
> org.apache.cassandra.locator.AbstractReplicationStrategy.createReplicationStrategy(
>         at 
> org.apache.cassandra.db.Table.createReplicationStrategy(
>         at org.apache.cassandra.db.Table.<init>(
>         ... 9 more
> Cannot load daemon
> I'm not sure how to check the replication_factor and/or update it 
> without using cassandra-cli, which requires the daemon to be running.
> Casey

View raw message