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 2A9F29932 for ; Thu, 8 Dec 2011 07:13:53 +0000 (UTC) Received: (qmail 43343 invoked by uid 500); 8 Dec 2011 07:13:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 43300 invoked by uid 500); 8 Dec 2011 07:13:50 -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 43292 invoked by uid 99); 8 Dec 2011 07:13:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 07:13:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Janne.Jalkanen@ecyrd.com designates 87.108.86.67 as permitted sender) Received: from [87.108.86.67] (HELO mail.ecyrd.com) (87.108.86.67) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 07:13:40 +0000 Received: from [192.168.0.10] (cs181095019.pp.htv.fi [82.181.95.19]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ecyrd.com (Postfix) with ESMTPSA id 8B6C397C155 for ; Thu, 8 Dec 2011 09:13:19 +0200 (EET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Upgrade from 0.6 to 1.0 From: Janne Jalkanen In-Reply-To: Date: Thu, 8 Dec 2011 09:13:19 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org I did this just last week, 0.6.13 -> 1.0.5. Basically, I grabbed the 0.7 distribution and ran the configuration = conversion tool there first, but since the config it produced wasn't = compatible with 1.0, in the end I just opened two editor windows, one = with my 0.6 config and one with the 1.0 cassandra.yaml file and modified = it by hand. It wasn't particularly hard, since most of my config was = happy with the defaults. Also I created a schema file based on the CF = family structure I had, also by hand, but I've got only ten or so CFs. I ran nodetool compact on all nodes, then nodetool drain, then shut down = the cluster. Upgraded to 1.0, restarted cluster. Then imported the = schema file (with cassandra-cli --file myschema.txt) Then ran nodetool = scrub and let my clients connect. The entire process was fairly smooth = except for some client-side oddities which were my own fault, and took = about (compaction time + 1) hours, most of which was spent in debugging = my application. I don't think compaction is necessary, but I wanted to = make sure I wouldn't run into disk space problems. After this everything has been just fine, except for CASSANDRA-3551, = which has been causing headaches for us, but not badly enough to make me = seriously consider downgrading. /Janne On Dec 6, 2011, at 22:12 , Jehan Bing wrote: > Hi, >=20 > I've seen recent posts saying it was possible to upgrade directly from = 0.6 to 1.0. But how? >=20 > I ran "nodetool drain" on all my nodes and shut them down. >=20 > However, there is not config-convert tool anymore. Since I basically = using the default config, is it important? Or is it OK to just use the = default one and change the few settings I need? >=20 > Also, there is no schematool anymore either. So how do I load the = schema? Can I just create one using cassandra-cli? Will cassandra then = load the existing data? >=20 > Last, I tried to start cassandra 1.0.5, I get the following error in = cassandra.log: >=20 > ERROR 11:41:19,399 Exception encountered during startup > java.lang.AssertionError > at = org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:295) > at = org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassand= raDaemon.java:150) > at = org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCass= andraDaemon.java:337) > at = org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)= > java.lang.AssertionError > at = org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:295) > at = org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassand= raDaemon.java:150) > at = org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCass= andraDaemon.java:337) > at = org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)= > Exception encountered during startup: null >=20 > Then cassandra exits so I can't run nodetool repair (or create the = schema if that's the problem). >=20 > So how should I proceed? > Or maybe I misread the previous post and I should actually do = 0.6->0.7->1.0? >=20 >=20 > Thanks, > Jehan