From user-return-24593-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Tue Mar 6 20:37:39 2012 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 45F859AF3 for ; Tue, 6 Mar 2012 20:37:39 +0000 (UTC) Received: (qmail 36270 invoked by uid 500); 6 Mar 2012 20:37:36 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 36253 invoked by uid 500); 6 Mar 2012 20:37:36 -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 36245 invoked by uid 99); 6 Mar 2012 20:37:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 20:37:36 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a58.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 20:37:31 +0000 Received: from homiemail-a58.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTP id DB1FF7D806A for ; Tue, 6 Mar 2012 12:37:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=nj4oJqVVpi rKtLu/8ls7LHFu7dpUd1oHT/jefxinBRy/SAsLxzVyrUt7xtCPtQi3+onnp266wd GJB0Ha+nHQlprtVkd3pr6MrJ1HL30hQLFSd3nIhI3G0F9L+6bAzCHZFON5Tbjy3J zyzDUgIdvzC45LKdn+FFFyL/UNOSAiDoQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=7cCZX91SSS0ea2OZ cOGbfs8QgwY=; b=3BZLNCbBqAOqXCAQHaI3BsdAmzeK1WOCfl2JqGU7E8hoOnM9 0RIIJYl69jJ2AJmXZ+K0GhEF7dKabT+DE3FfAYKii76A08bX80P24C0oa2YCPA+5 bBWGH1KsYlkKtk2/SsV1oc6TVzxzmFqSP9vwclzzhaZ2l8fZ3Wbz+vRMLxA= Received: from 202-126-206-207.vectorcommunications.net.nz (unknown [202.126.206.207]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTPSA id 4BC347D8058 for ; Tue, 6 Mar 2012 12:37:09 -0800 (PST) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_0A3BC3B1-921D-4E9A-9EAA-48F6DBF214ED" Subject: Re: Repairing nodes when two schema versions appear Date: Wed, 7 Mar 2012 09:37:06 +1300 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: <7F512340-3919-4939-A205-C5A4AF8DF9F1@thelastpickle.com> X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_0A3BC3B1-921D-4E9A-9EAA-48F6DBF214ED Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Go to one of the nodes, stop it and delete the Migrations and Schema = files in the system keyspace.=20 When you restart the node it will stream the migrations the other. Note = that if the node is UP and accepting traffic it may log errors about = missing CF's during this time.=20 Cheers=20 ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 7/03/2012, at 1:43 AM, Tharindu Mathew wrote: > Hi, >=20 > I try to add column families programatically and end up with 2 schema = versions in the Cassandra cluster. Using Cassandra 0.7. >=20 > Is there a way to bring this back to normal (to one schema version) = through the cli or through the API? >=20 > --=20 > Regards, >=20 > Tharindu >=20 > blog: http://mackiemathew.com/ >=20 --Apple-Mail=_0A3BC3B1-921D-4E9A-9EAA-48F6DBF214ED Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Go to = one of the nodes, stop it and delete the Migrations and Schema files in = the system keyspace. 

When you restart the node = it will stream the migrations the other. Note that if the node is UP and = accepting traffic it may log errors about missing CF's during this = time. 

Cheers 

<= br>
http://www.thelastpickle.com

On 7/03/2012, at 1:43 AM, Tharindu Mathew wrote:

Hi,

I= try to add column families programatically and end up with 2 schema = versions in the Cassandra cluster. Using Cassandra 0.7.

Is there = a way to bring this back to normal (to one schema version) through the = cli or through the API?

--
Regards,

Tharindu



= --Apple-Mail=_0A3BC3B1-921D-4E9A-9EAA-48F6DBF214ED--