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 8F04081A7 for ; Wed, 7 Sep 2011 15:16:08 +0000 (UTC) Received: (qmail 8237 invoked by uid 500); 7 Sep 2011 15:16:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8066 invoked by uid 500); 7 Sep 2011 15:16: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 8058 invoked by uid 99); 7 Sep 2011 15:16:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 15:16:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of roshandawrani@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 15:15:58 +0000 Received: by fxe6 with SMTP id 6so694451fxe.31 for ; Wed, 07 Sep 2011 08:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7HU7d1iEHIGKI1UIn8p003GgSHpp6XlOsPPsPHc+av8=; b=K5KAEN6LzQMdQFnV7aSQLHYbonpEl33TK9Yv6agzbDqO8MhGY4o/Hkx0AazSO0/5aP 4UxX+wdZR4ENjPtGc6n0i1cKUuGJYFjtAz67WmECrszyQ+lSXTdQzY/kDzssDnHBCcRj yKyZoX7GNhhQwn50ewIfH+EZ9xSj/OsSyAxAI= MIME-Version: 1.0 Received: by 10.223.51.216 with SMTP id e24mr2127704fag.105.1315408538294; Wed, 07 Sep 2011 08:15:38 -0700 (PDT) Received: by 10.152.2.164 with HTTP; Wed, 7 Sep 2011 08:15:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 20:45:38 +0530 Message-ID: Subject: Re: Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml? From: Roshan Dawrani To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0015174788c2a8da1004ac5b6ae2 X-Virus-Checked: Checked by ClamAV on apache.org --0015174788c2a8da1004ac5b6ae2 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 7, 2011 at 7:27 PM, Jonathan Ellis wrote: > No, the "load from yaml" was only supported for upgrading from 0.6. > You'd need to create the schema programatically instead. > Thanks for confirming. I am now creating my keyspace programmatically, but running into another small cassandra issue with my embedded server. In my embedded server setup, I use cassandra-javautils's CassandraServiceDataCleaner to clean-up the data directories, which in turn uses DatabaseDescriptor.getAllDataFileLocations() to get various directories configured in cassandra.yaml. Now the problem is that DatabaseDescriptor uses CassandraDaemon to do a check on allowed rpc_server_types, which forces static initializer of its parent AbstractCassandraDaemon to get executed. AbstractCassandraDaemon's static initlializer fails if it does not find "log4j-server.properties" Our is a Grails application, and log4j configuration is initialized in a different way, and I do not want to feed embedded server a dummy log4j.properties file just to satisfy the chain above. Is there any way I can avoid it? -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani Skype: roshandawrani --0015174788c2a8da1004ac5b6ae2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Sep 7, 2011 at 7:27 PM, Jonathan Ellis <= span dir=3D"ltr"><jbellis@gmail.com= > wrote:
No, the "load from yaml" was only supported for upgrading from 0.= 6.
You'd need to create the schema programatically instead.

Thanks for confirming.=A0I am now creating my keyspac= e programmatically, but running into another small cassandra issue with my = embedded server.

In my embedded server setup, I use cassandra-javautils&= #39;s=A0CassandraServiceDataCleaner to clean-up the data directories, which= in turn uses=A0DatabaseDescriptor.getAllDataFileLocations() to get various= directories configured in cassandra.yaml.

Now the problem is that=A0DatabaseDescriptor uses=A0Cas= sandraDaemon to do a check on allowed rpc_server_types, which forces static= initializer of its parent=A0AbstractCassandraDaemon to get executed.=A0Abs= tractCassandraDaemon's static initlializer fails if it does not find=A0= "log4j-server.properties"

Our is a Grails application, and log4j configuration is= initialized in a different way, and I do not want to feed embedded server = a dummy log4j.properties =A0file just to satisfy the chain above. Is there = any way I can avoid it?

--
Roshan
Blog: http://roshandawrani.wordpress.com/<= br>Twitter: = @roshandawrani
Skype: roshandawrani

--0015174788c2a8da1004ac5b6ae2--