RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
Thanks . I change ss to bytebufferserializer. It works fine. From: Raoyixuan (Shandy) [mailto:raoyix...@huawei.com] Sent: Thursday, February 17, 2011 11:16 AM To: user@cassandra.apache.org Subject: RE: indexedslicesQuery class error I modify it as below StringSerializer ss

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
ache.org Subject: Re: indexedslicesQuery class error You didn't see the previously given link? @see: https://groups.google.com/group/hector-users/browse_thread/thread/520c5332dedfca4a 2011/2/17 Raoyixuan (Shandy) mailto:raoyix...@huawei.com>> But my requirement is get

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
still making the same mistake. You are now saying that your values are going to be long (by passing LS as the valueSerializer), but in addEqualsExpression(), you are passing a String value. 2011/2/17 Raoyixuan (Shandy) mailto:raoyix...@huawei.com>> Not really. I also tried the code as

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
class error That's because in createIndexedSlicesQuery(), you have used SS as the valueSerializer, and then in addGtExpression("birth_date", 1970L), you pass a long as the value. @see: https://groups.google.com/group/hector-users/browse_thread/thread/520c5332dedfca4a 2011/2/17 Raoyixuan (S

indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
I do the range query by the hector client when the state and birht_date columns are both indexed, it show the error: The method addGtExpression(String,String) in the type IndexedSlicesQuery is not applicable for the arguments(String,long) The code is as below: StringSerializer ss = StringSer

RE: the java client problem

2011-01-26 Thread Raoyixuan (Shandy)
might reveal something Anyone else can help here.? 2011/1/27 Raoyixuan (Shandy) mailto:raoyix...@huawei.com>> It shows error, I put it in the attachment From: Ashish [mailto:paliwalash...@gmail.com<mailto:paliwalash...@gmail.com>] Sent: Wednesday, January 26, 2011 10:31

RE: the java client problem

2011-01-25 Thread Raoyixuan (Shandy)
connect via jconsole find MBeans -> org.apache.cassandra.db -> StorageService<http://wiki.apache.org/cassandra/StorageService> -> Operations -> loadSchemaFromYAML load the schema and then try the example again. HTH ashish 2011/1/21 raoyixuan (Shandy) mailto:raoyix...@huawei.com>

RE: about the partitioner type

2011-01-23 Thread raoyixuan (Shandy)
: user@cassandra.apache.org Subject: Re: about the partitioner type http://www.datastax.com/docs/0.7/operations/clustering#tokens-partitioners-and-the-ring - Tyler 2011/1/23 raoyixuan (Shandy) mailto:raoyix...@huawei.com>> whether the random/order partitioner specify the token for the node ,n

about the partitioner type

2011-01-23 Thread raoyixuan (Shandy)
whether the random/order partitioner specify the token for the node ,not for key? 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13425182943 Email: raoyix...@huawei.com 地址:深圳市龙岗区坂田华为基地 邮编:518129 Huawei Technologies Co., Ltd. Bantian

RE: the java client problem

2011-01-21 Thread raoyixuan (Shandy)
cassandra, ensure to load the schema from JMX. thanks ashish 2011/1/21 raoyixuan (Shandy) mailto:raoyix...@huawei.com>> I exec the code as below by hector client: package com.riptano.cassandra.hector.example; import me.prettyprint.cassandra.serializers.StringSerializer;

the java client problem

2011-01-21 Thread raoyixuan (Shandy)
I exec the code as below by hector client: package com.riptano.cassandra.hector.example; import me.prettyprint.cassandra.serializers.StringSerializer; import me.prettyprint.hector.api.Cluster; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.beans.HColumn; import me.pret

RE: about the hector client

2011-01-19 Thread raoyixuan (Shandy)
It's ok -Original Message- From: raoyixuan (Shandy) [mailto:raoyix...@huawei.com] Sent: Wednesday, January 19, 2011 2:28 PM To: user@cassandra.apache.org Subject: RE: about the hector client I will try it again, thank you . -Original Message- From: Ashish [mailto:paliw

RE: about the hector client

2011-01-18 Thread raoyixuan (Shandy)
at 11:42 AM, raoyixuan (Shandy) wrote: > The url is unavailable > > > > From: Aaron Morton [mailto:aa...@thelastpickle.com] > Sent: Wednesday, January 19, 2011 12:17 PM > To: user@cassandra.apache.org > Subject: Re: about the hector client > > > > Try the hect

RE: about the hector client

2011-01-18 Thread raoyixuan (Shandy)
can also create a keyspace in a cassandra cluster via the cassandra-cli command line interface Take a look at the tools online help if you're interested. Aaron On 19 Jan, 2011,at 05:00 PM, "raoyixuan (Shandy)" wrote: Can you tell me the exactly steps to create a keyspace by hector

about the hector client

2011-01-18 Thread raoyixuan (Shandy)
Can you tell me the exactly steps to create a keyspace by hector client? 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13425182943 Email: raoyix...@huawei.com 地址:深圳市龙岗区坂田华为基地 邮编:518129 Huawei Technologies Co., Ltd. Bantian, Longgang

RE: about the consistency level

2011-01-17 Thread raoyixuan (Shandy)
e overloads for m.p.h.api.factory.HFactory.createKeyspace() . It defaults to the m.p.c.model.QuorumAllConsistencyLevelPolicy which uses Quorum for all operations. Hope that helps. Aaron On 17/01/2011, at 9:23 PM, raoyixuan (Shandy) wrote: Both hector and cassandra-cli . Can you tell me respect

RE: about the consistency level

2011-01-17 Thread raoyixuan (Shandy)
command. How you set it will depend on the client you are using. Which one are you using ? Aaron On 17/01/2011, at 8:50 PM, raoyixuan (Shandy) wrote: How to set the consistency level in Cassandra 0.7? I mean what command? 华为技术有限公司 Huawei Technologies Co., Ltd. Phone: 28358610 Mobile

about the consistency level

2011-01-16 Thread raoyixuan (Shandy)
How to set the consistency level in Cassandra 0.7? I mean what command? 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13425182943 Email: raoyix...@huawei.com 地址:深圳市龙岗区坂田华为基地 邮编:518129 Huawei Technologies Co., Ltd. Bantian, Longgang D

RE: balancing load

2011-01-16 Thread raoyixuan (Shandy)
You can issue the nodetool cleanup to clean up the data in old nodes. -Original Message- From: Karl Hiramoto [mailto:k...@hiramoto.org] Sent: Monday, January 17, 2011 3:34 PM To: user@cassandra.apache.org Subject: Re: balancing load Thanks for the help. I used "nodetool move", so now ea

RE: about the data directory

2011-01-14 Thread raoyixuan (Shandy)
Thanks very much -Original Message- From: sc...@scode.org [mailto:sc...@scode.org] On Behalf Of Peter Schuller Sent: Friday, January 14, 2011 4:40 PM To: user@cassandra.apache.org Subject: Re: about the data directory > as a administrator, I want to know why I can read the data from any n

RE: about the data directory

2011-01-13 Thread raoyixuan (Shandy)
@cassandra.apache.org Subject: Re: about the data directory On Thu, Jan 13, 2011 at 7:56 PM, raoyixuan (Shandy) wrote: > I have some confused, why do the users can read the data in all nodes? I mean > the data just be kept in the replica, how to achieve it? > > -Original Message- > From:

RE: java.net.BindException: Cannot assign requested address

2011-01-13 Thread raoyixuan (Shandy)
It's ip address problem, whether you ip address had changed? Please confirm it and restart the Cassandra. -Original Message- From: vikram prajapati [mailto:prajapativik...@hotmail.com] Sent: Friday, January 14, 2011 12:23 AM To: user@cassandra.apache.org Subject: Re: java.net.BindExcepti

RE: about the data directory

2011-01-13 Thread raoyixuan (Shandy)
I have some confused, why do the users can read the data in all nodes? I mean the data just be kept in the replica, how to achieve it? -Original Message- From: sc...@scode.org [mailto:sc...@scode.org] On Behalf Of Peter Schuller Sent: Friday, January 14, 2011 1:19 AM To: user@cassandra.ap

RE: about the data directory

2011-01-13 Thread raoyixuan (Shandy)
So you mean just the replica node 's sstable will be changed ,right? If all the replica node broke down, whether the users can read the data? -Original Message- From: sc...@scode.org [mailto:sc...@scode.org] On Behalf Of Peter Schuller Sent: Thursday, January 13, 2011 4:32 PM To: user@ca

RE: about the data directory

2011-01-13 Thread raoyixuan (Shandy)
I agree with you totally. but I want to know which node is the data kept? I mean which way to know the actual data kept? -Original Message- From: sc...@scode.org [mailto:sc...@scode.org] On Behalf Of Peter Schuller Sent: Thursday, January 13, 2011 4:20 PM To: user@cassandra.apache.org Sub

RE: about the data directory

2011-01-13 Thread raoyixuan (Shandy)
Not exactly. You mean one data will be put in four nodes which have 25%? If does, how about two replica? From: Viktor Jevdokimov [mailto:viktor.jevdoki...@adform.com] Sent: Thursday, January 13, 2011 2:59 PM To: user@cassandra.apache.org Subject: RE: about the data directory >I have 4 nodes, the

about the data directory

2011-01-12 Thread raoyixuan (Shandy)
I have 4 nodes, then I I create one keyspace (such as FOO) with replica factor =1 and insert an data, why I can see the directory of /var/lib/Cassandra/data/FOO in every nodes? As I know, I just have one replica 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13

RE: about the insert data

2011-01-12 Thread raoyixuan (Shandy)
replicas might happen to be the coordinator itself. Only replicas read/write data they are responsible for, not the coordinator (unless the coordinator is also a replica for that data). - Tyler On Thu, Jan 13, 2011 at 12:07 AM, raoyixuan (Shandy) mailto:raoyix...@huawei.com>> wrote: I mean w

RE: about the insert data

2011-01-12 Thread raoyixuan (Shandy)
: Thursday, January 13, 2011 1:56 PM To: user Subject: Re: about the insert data On Wed, Jan 12, 2011 at 5:46 PM, raoyixuan (Shandy) wrote: > So you mean the coordinator node is just responsible for routing the request. Right. Of course, if the coordinator node happens to also be a replica, it

about the write consistency

2011-01-12 Thread raoyixuan (Shandy)
if I have 20 nodes, and replica factor is 3, whether all the node have the replica finally or just have 3 replica? 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13425182943 Email: raoyix...@huawei.com 地址:深圳市龙岗区坂田华为基地 邮编:518129 Huawei

RE: about the insert data

2011-01-12 Thread raoyixuan (Shandy)
So you mean the coordinator node is just responsible for routing the request. where the request will be Routed? whether the coordinator node route the request to the first replica to insert the data? whether -Original Message- From: sc...@scode.org [mailto:sc...@scode.org] On Behalf Of

RE: about the insert data

2011-01-11 Thread raoyixuan (Shandy)
which you connect to and make the request to. It has nothing to do with which node(s) are replicas for the data. - Tyler 2011/1/11 raoyixuan (Shandy) mailto:raoyix...@huawei.com>> I get confuse about the node which the data insert.I connect to one node by Cassandra-cli, and insert some da

about the insert data

2011-01-11 Thread raoyixuan (Shandy)
I get confuse about the node which the data insert.I connect to one node by Cassandra-cli, and insert some data ,whether this node is the coordinate node? As I know, if I set the random partitioner, the coordinate node is whose the hash value bigger than the key’s hash value 华为技术有限公司 Huawei Te