From user-return-8705-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Mon Aug 23 21:12:50 2010 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 46520 invoked from network); 23 Aug 2010 21:12:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Aug 2010 21:12:50 -0000 Received: (qmail 81170 invoked by uid 500); 23 Aug 2010 21:12:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81126 invoked by uid 500); 23 Aug 2010 21:12:47 -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 81118 invoked by uid 99); 23 Aug 2010 21:12:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 21:12:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,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-a48.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 21:12:42 +0000 Received: from homiemail-a48.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTP id 55E144F8065 for ; Mon, 23 Aug 2010 14:12:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:message-id:content-type:mime-version:in-reply-to:date; q=dns; s=thelastpickle.com; b=FgwJzklHHWoOmn+nVhIWsNjHW22j5axgo CgCv63GYUCe3wg7/06xS5sT/ciJJoDBh4rMcm9EKYgJb5n3Byr6FjhjpYQWiU9RQ ASMVW7UUPsmy3/rW9y5TAeU4Npc8TDKQXeZZhrXgLbHbFuEXEmKLStVN0/xyvYsa TyfFQYCGTo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:message-id:content-type:mime-version:in-reply-to: date; s=thelastpickle.com; bh=D9zhPp8XmtqAQXS6r41NM5gzGJ8=; b=rf d2uI+iushVSwWTuuOIdEzN61VSIDIx1cMiwf6ENDbiDgusyeZha95Y7/p0kv9M10 ijCOD2e/7xdT/zCgE2wfdTK9eXk3upv3Uh0izY++5gGNVoGook/KNstlLE5CwMkM e0ZT8abIT+JMYiaI3jrKQ/so96uRsi+JZnqA/PAiQ= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a48.g.dreamhost.com (Postfix) with ESMTPSA id 404494F8062 for ; Mon, 23 Aug 2010 14:12:21 -0700 (PDT) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: cassandra.yaml after a schema import X-Mailer: MobileMe Mail (1C2649) Message-id: Content-Type: multipart/alternative; boundary=Apple-Webmail-42--f02a76db-28e9-e960-f154-e7c96f145df6 MIME-Version: 1.0 In-Reply-To: Date: Mon, 23 Aug 2010 14:12:21 -0700 (PDT) --Apple-Webmail-42--f02a76db-28e9-e960-f154-e7c96f145df6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Thanks for the=A0explanation, I'll see if I can merge that into the=0A=A0h= ttp://wiki.apache.org/cassandra/StorageConfiguration=0Aand=0Ahttp://wiki.a= pache.org/cassandra/StorageConfiguration_0.7=0A=0Apages=0AAaron=0A=0AOn 24= Aug, 2010,at 12:42 AM, Sylvain Lebresne wrote:=0A=0AT= he cassandra.yaml holds general configuration of cassandra and the=0Aschem= a definitions.=0AAs of 0.7, the schema definition are not need anymore in = this file as=0Aschema can be defined=0Aprogramatically. Those definition a= re are ignored by any node that=0Aalready have schema loaded=0A(hence the = warning). But all the general configuration (memtable=0Atresholds, locatio= n of data and=0Acommitlog dir, etc...) are still always needed. So you can= not and=0Ashould not remove the=0Acassandra.yaml for the classpath. But yo= u can safely remove the part=0Aof the file that describe the=0Aschema (or = simply ignore the warning).=0A=0AOn Mon, Aug 23, 2010 at 2:28 PM, aaron mo= rton wrote:=0A> I think this may have been discu= ssed before, but I cannot find any reference to it. Just wanted to confirm= how cassandra.yaml is used after the cluster is initialised.=0A>=0A> Star= t a clean install of 0.7b1, use jconsole to import the schema from yaml. D= rain the node and shut it down, then remove the cassandra.yaml file from /= conf. =A0Try to start the node and it fails with...=0A>=0A>=0A> ERROR 00:1= 1:57,088 Fatal error: Cannot locate cassandra.yaml on the classpath=0A> Ba= d configuration; unable to start server=0A>=0A> Put the file back and I ge= t=0A> =A0WARN 00:16:32,367 Schema definitions were defined both locally an= d in cassandra.yaml. Definitions in cassandra.yaml were ignored.=0A>=0A> S= imilar situation if the yaml file is invalid.=0A>=0A> If the yaml file is = ignored, is it right that it has to be there ?=0A>=0A> If so should I upda= te http://wiki.apache.org/cassandra/FAQ#no_keyspaces and/or http://wiki.ap= ache.org/cassandra/LiveSchemaUpdates ?=0A>=0A> Thanks=0A> Aaron=0A>=0A>=0A --Apple-Webmail-42--f02a76db-28e9-e960-f154-e7c96f145df6 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--f02a76db-28e9-e960-f154-e7c96f145df6 --Apple-Webmail-86--f02a76db-28e9-e960-f154-e7c96f145df6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
Thanks for the explanation, I'll see if I can merge that into th= e
<= div>and
pages
Aaron

On 24 Aug= , 2010,at 12:42 AM, Sylvain Lebresne <sylvain@yakaz.com> wrote:
<= br>
The c= assandra.yaml holds general configuration of cassandra and the
=0Aschem= a definitions.
=0AAs of 0.7, the schema definition are not need anymore= in this file as
=0Aschema can be defined
=0Aprogramatically. Those = definition are are ignored by any node that
=0Aalready have schema load= ed
=0A(hence the warning). But all the general configuration (memtable<= br>=0Atresholds, location of data and
=0Acommitlog dir, etc...) are sti= ll always needed. So you cannot and
=0Ashould not remove the
=0Acass= andra.yaml for the classpath. But you can safely remove the part
=0Aof = the file that describe the
=0Aschema (or simply ignore the warning).=0A
=0AOn Mon, Aug 23, 2010 at 2:28 PM, aaron morton <aaron@thelast= pickle.com> wrote:
=0A> I think this may have been discussed befo= re, but I cannot find any reference to it. Just wanted to confirm how cass= andra.yaml is used after the cluster is initialised.
=0A>
=0A>= Start a clean install of 0.7b1, use jconsole to import the schema from ya= ml. Drain the node and shut it down, then remove the cassandra.yaml file f= rom /conf.  Try to start the node and it fails with...
=0A>
= =0A>
=0A> ERROR 00:11:57,088 Fatal error: Cannot locate cassandra= yaml on the classpath
=0A> Bad configuration; unable to start serve= r
=0A>
=0A> Put the file back and I get
=0A>  WARN = 00:16:32,367 Schema definitions were defined both locally and in cassandra= yaml. Definitions in cassandra.yaml were ignored.
=0A>
=0A> S= imilar situation if the yaml file is invalid.
=0A>
=0A> If the= yaml file is ignored, is it right that it has to be there ?
=0A>=0A> If so should I update http://wiki.apache.org/cassandra/FAQ#no_keyspaces and/or http://wiki.apache.org/c= assandra/LiveSchemaUpdates ?
=0A>
=0A> Thanks
=0A> A= aron
=0A>
=0A>
=0A
--Apple-Webmail-86--f02a76db-28e9-e960-f154-e7c96f145df6-- --Apple-Webmail-42--f02a76db-28e9-e960-f154-e7c96f145df6--