Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 839B79642 for ; Wed, 16 May 2012 00:42:07 +0000 (UTC) Received: (qmail 87547 invoked by uid 500); 16 May 2012 00:42:05 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 87516 invoked by uid 500); 16 May 2012 00:42:05 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 87508 invoked by uid 99); 16 May 2012 00:42:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 00:42:05 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.35.23.30] (HELO smtp-out2.electric.net) (72.35.23.30) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 00:41:58 +0000 Received: from [10.86.5.46] (helo=fuse246) by bean.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1SUSJ6-0004HC-Ue for user@cassandra.apache.org; Tue, 15 May 2012 17:41:36 -0700 Received: from mailanyone.net by fuse246 with esmtpsa (TLSv1:AES256-SHA:256) (MailAnyone extSMTP dbrosius@baybroadband.net) id 1SUSJ6-0005jO-Ac for user@cassandra.apache.org; Tue, 15 May 2012 17:41:36 -0700 Message-ID: <4FB2F7A5.3030606@mebigfatguy.com> Date: Tue, 15 May 2012 20:41:09 -0400 From: Dave Brosius User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: cassandra upgrade to 1.1 - migration problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 ./sstable2json /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ia-1-Data.db and get { "7374726573735f6b73": [["durable_writes","true",1968197311980145], ["name","stress_ks",1968197311980145], ["strategy_class","org.apache.cassandra.locator.SimpleStrategy",1968197311980145], ["strategy_options","{\"replication_factor\":\"3\"}",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(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160) > Caused by: java.lang.RuntimeException: > org.apache.cassandra.config.ConfigurationException: SimpleStrategy > requires a replication_factor strategy option. > at org.apache.cassandra.db.Table.(Table.java:275) > at org.apache.cassandra.db.Table.open(Table.java:114) > at org.apache.cassandra.db.Table.open(Table.java:97) > at > org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:204) > at > org.apache.cassandra.service.AbstractCassandraDaemon.init(AbstractCassandraDaemon.java:254) > ... 5 more > Caused by: org.apache.cassandra.config.ConfigurationException: > SimpleStrategy requires a replication_factor strategy option. > at > org.apache.cassandra.locator.SimpleStrategy.validateOptions(SimpleStrategy.java:71) > at > org.apache.cassandra.locator.AbstractReplicationStrategy.createReplicationStrategy(AbstractReplicationStrategy.java:218) > at > org.apache.cassandra.db.Table.createReplicationStrategy(Table.java:295) > at org.apache.cassandra.db.Table.(Table.java:271) > ... 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