You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Roshan Dawrani <ro...@gmail.com> on 2011/09/07 07:27:11 UTC

Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml?

Hi,

I have just started the process of upgrading Cassandra from 0.7.2 to 0.8.4,
and I am facing some issues with embedded cassandra that we utilize in our
application.

With 0.7.2, we define our keyspace in cassandra.yaml and use Hector to give
us an embedded cassandra instance loaded with schema from cassandra.yaml. Is
it not possible to do the same with Cassandra / Hector 0.8.x?

Can someone throw some light please?

Thanks.

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

Re: Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml?

Posted by Roshan Dawrani <ro...@gmail.com>.
On Wed, Sep 7, 2011 at 7:27 PM, Jonathan Ellis <jb...@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. 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 <http://twitter.com/roshandawrani>
Skype: roshandawrani

Re: Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml?

Posted by Jonathan Ellis <jb...@gmail.com>.
No, the "load from yaml" was only supported for upgrading from 0.6.
You'd need to create the schema programatically instead.

On Wed, Sep 7, 2011 at 12:27 AM, Roshan Dawrani <ro...@gmail.com> wrote:
> Hi,
> I have just started the process of upgrading Cassandra from 0.7.2 to 0.8.4,
> and I am facing some issues with embedded cassandra that we utilize in our
> application.
> With 0.7.2, we define our keyspace in cassandra.yaml and use Hector to give
> us an embedded cassandra instance loaded with schema from cassandra.yaml. Is
> it not possible to do the same with Cassandra / Hector 0.8.x?
> Can someone throw some light please?
> Thanks.
> --
> Roshan
> Blog: http://roshandawrani.wordpress.com/
> Twitter: @roshandawrani
> Skype: roshandawrani
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com