incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Chalamet" <pie...@chalamet.net>
Subject RE: creating keyspace with 1.1
Date Sun, 06 May 2012 11:51:57 GMT
 

Caching has quite change a lot in 1.1. See
<http://www.datastax.com/dev/blog/caching-in-cassandra-1-1>
http://www.datastax.com/dev/blog/caching-in-cassandra-1-1

 

You need to set appropriate value in cassandra conf : key_cache_size_in_mb,
key_cache_save_period and row_cache_size_in_mb.

 

You will probably need to change the caching properties on CF with ALL or
ROWS_ONLY if you want to enable rows caching. Something like this:

create column family Application with caching='ALL';

By default, only keys are cached.

 

- Pierre

 

From: cyril auburtin [mailto:cyril.auburtin@gmail.com] 
Sent: dimanche 6 mai 2012 12:22
To: user@cassandra.apache.org
Subject: Re: creating keyspace with 1.1

 

and one more thing

 

For migration 0.7.10 ->1.1

I had to remove rows_cached, keys_cached, and key_cache_save_period from CF
declarations?

What would it change for my application

 

create column family Application with column_type = 'Standard' and
comparator = 'UTF8Type' and rows_cached = 100.0 and keys_cached = 1000.0 and
key_cache_save_period = 3600;

 

2012/5/6 cyril auburtin <cyril.auburtin@gmail.com>

thx

 

Other question

 

(I'm moving from cassandra 0.7.10 to 1.1)

 

the class org.apache.cassandra.thrift.Column.Column 's constructor arguments
is now just name instead of (name, value, timestamp)

 

So it should be called like this?

 

new
Column(myColumnName).setValue(myVal).setTimestamp(System.currentTimeMillis()
);

 

Larger.. , but no choice

 

 

 

2012/5/6 Pierre Chalamet <pierre@chalamet.net>

Hi,

 

I bet you are using cql commands in cassandra-cli.

 

If you are using cli, use instead:

create keyspace Excelsior with placement_strategy='SimpleStrategy' and
strategy_options = [{replication_factor:1}]

 

 

From: cyril auburtin [mailto:cyril.auburtin@gmail.com] 
Sent: Sunday, May 06, 2012 10:31 AM
To: user@cassandra.apache.org
Subject: creating keyspace with 1.1

 

Hello

 

I have just installed cassandra 1.1

 

 CREATE KEYSPACE Excelsior WITH strategy_class = 'SimpleStrategy' AND
strategy_options:replication_factor = 1;

 

gives this error:

 

Syntax error at position 85: mismatched input ':' expecting '='

 

I've looked in changes but didn't found 

Thanks

 

 


Mime
View raw message