java.lang.OutOfMemoryError: Java heap space

2010-11-24 Thread zangds
cutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: 
Java heap space
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at 
org.apache.cassandra.service.StorageProxy.weakRead(StorageProxy.java:276)
... 11 more
Caused by: java.lang.OutOfMemoryError: Java heap space


2010-11-24 



zangds 


about key sorting and token partitioning

2010-11-10 Thread zangds
Hi,
I am using cassandra to store a message steam, and want to use timestamps (like 
mmddhhMIss or something alike) as the keys.
So if I use RandomPartitioner, I will loose the order when using 
get_range_slices().
If I use OrderPreservingPartitioner, how should I configure cassandra to make 
load balance between the nodes?

Thanks!

2010-11-10 



zangds 


Re: RE: how does get_range_slices work?

2010-11-05 Thread zangds
No,It's not the columns, but the rows.
These are the keys of the rows.

--   
zangds
2010-11-05

-
发件人:Stu Hood
发送日期:2010-11-05 17:07:43
收件人:user
抄送:
主题:RE: how does get_range_slices work?

What column comparator/type are you using? Remember that if you are using 
BytesType/UTF8Type, columns will be sorted lexicographically. 


-Original Message-
From: "zangds" 
Sent: Friday, November 5, 2010 8:53am
To: "user" 
Subject: how does get_range_slices work?

Hi,
I have a question about the get_range_slices() function about the key sorting.
I inserted some colums with keys of '1', '2' ,'7' and '10'.
When I use get_range_slices to get colums betwen '1' and '10' , I got none.
But When I get colums betwen '10' and '1', I got '10', '2' and '1'.

Can anybody tell me why?
Thanks!
2010-11-05 



zangds 



how does get_range_slices work?

2010-11-05 Thread zangds
Hi,
I have a question about the get_range_slices() function about the key sorting.
I inserted some colums with keys of '1', '2' ,'7' and '10'.
When I use get_range_slices to get colums betwen '1' and '10' , I got none.
But When I get colums betwen '10' and '1', I got '10', '2' and '1'.

Can anybody tell me why?
Thanks!
2010-11-05 



zangds 


default_validation_class and column_metadata

2010-11-05 Thread zangds
Hi,
Is it possible to use default_validation_class and column_metadata in 
cassandra-cli?
I'm using 0.7.0-beta2.
Thanks!

2010-11-05 



zangds 


what is cassandra-rack.properties used for?

2010-11-03 Thread zangds
and how to config it?

2010-11-03 



zangds 


Re: Re: how to create Keyspaces and ColumnFamilies in 0.7.0 beta2?

2010-10-30 Thread zangds
Thank you.
how to "import yaml declaration once throw JMX“?

2010-10-30 



zangds 



发件人: ruslan usifov 
发送时间: 2010-10-30  22:32:31 
收件人: user 
抄送: 
主题: Re: how to create Keyspaces and ColumnFamilies in 0.7.0 beta2? 
 
I'm sorry but i mistaken, the example mut lokks like this:

create keyspace test_1 with replication_factor=1;
use test_1;
create column family value with column_type='Standard' and 
comparator='AsciiType' and rows_cached=0.5 and key_cache_size=400;



http://wiki.apache.org/cassandra/LiveSchemaUpdates


2010/10/31 ruslan usifov 

It should be creatted dinamicly, But you can import yaml declaration once throw 
JMX

To create dynamicly you can use cassandra-cli

Here some example of use it 

create keyspace test_1;
use test_1;
create column family value with replication_factor=1 and column_type='Standard' 
and comparator='AsciiType' and rows_cached=0.5 and key_cache_size=400;


2010/10/30 zangds 


Should it be defined in cassandra.yaml?
Or, create it on dynamic?

2010-10-30 



zangds 


how to create Keyspaces and ColumnFamilies in 0.7.0 beta2?

2010-10-30 Thread zangds
Should it be defined in cassandra.yaml?
Or, create it on dynamic?

2010-10-30 



zangds 


no default storage-conf.xml in apache-cassandra-0.7.0-beta2?

2010-10-28 Thread zangds

rt
2010-10-28 



zangds