Re: about insert benchmark

2010-09-02 Thread ChingShen
Sorry, my Cassandra version is 0.6.4.

Re: about insert benchmark

2010-09-01 Thread ChingShen
egards > Vineet Daniel > +918106217121 > ___ > > Let your email find you > > > On Thu, Sep 2, 2010 at 11:39 AM, ChingShen wrote: > >> Hi all, >> >> I run a benchmark with my own code and found that the 10 inserts

about insert benchmark

2010-09-01 Thread ChingShen
Hi all, I run a benchmark with my own code and found that the 10 inserts performance is better than others, Why? Can anyone explain it? Thanks. Partitioner = OPP CL = ONE == 1000 records insert one:201 ms insert per:0.201 ms insert thput:4975.12

test

2010-08-19 Thread ChingShen
test

Re: Can I retrieve specific key range from a table in RandomPartitioner?

2010-08-12 Thread ChingShen
[1000]); List results = client.get_range_slices(keyspace, parent, predicate, k, ConsistencyLevel.ONE); On Thu, Aug 12, 2010 at 4:44 PM, ChingShen wrote: > Hi all, > >Can I retrieve specific key range from a table in RandomPartitioner? > Because I always got below exception: > Exce

Can I retrieve specific key range from a table in RandomPartitioner?

2010-08-12 Thread ChingShen
Hi all, Can I retrieve specific key range from a table in RandomPartitioner? Because I always got below exception: Exception in thread "main" InvalidRequestException(why:start key's md5 sorts after end key's md5. this is not allowed; you probably should not specify end key at all, under Random

Re: Unreliable transport layer

2010-07-29 Thread ChingShen
Why? What reasons did you choose TCP? Shen On Sat, Mar 6, 2010 at 9:15 AM, Jonathan Ellis wrote: > In 0.6 gossip is over TCP. > > On Fri, Mar 5, 2010 at 6:54 PM, Ashwin Jayaprakash > wrote: > > Hey guys! I have a simple question. I'm a casual observer, not a real > > Cassandra user yet. So, ex

Re: How to get the 'system' keyspace info?

2010-07-20 Thread ChingShen
Thanks Jonathan Ellis, I got an error message as below: ERROR [pool-1-thread-1] 2010-07-21 08:51:46,582 Cassandra.java (line 1242) Internal error processing get_slice java.lang.RuntimeException:* No replica strategy configured for system* Because the "system" keyspace is for Cassandra internals,

How to get the 'system' keyspace info?

2010-07-19 Thread ChingShen
cassandra> get system.LocationInfo['L'] Exception Internal error processing get_slice What's wrong? Thanks. Shen

Question about CL.ZERO

2010-07-11 Thread ChingShen
Hi all, Does it mean that the coordinator node always return success to the client at CL.ZERO? But if the coordinator node sends a request to a given node B(RF=1), then B is down, what happened? The coordinator node will write the hint locally? Thanks. Shen

Re: UnavailableException on QUORUM write

2010-07-09 Thread ChingShen
Which client library do you use? Shen On Fri, Jul 9, 2010 at 4:53 PM, Per Olesen wrote: > Hi, > > I am a bit confused about getting an UnavailableException when doing a > QUORUM write. > > I have a 3 node cluster, with RF=3. When all 3 nodes are up, the QUORUM > write succeeds. When 1 of the 3

Re: Some questions about the write operation and hinted handoff

2010-07-08 Thread ChingShen
On Fri, Jul 9, 2010 at 4:32 AM, Jonathan Ellis wrote: > If the coordinator knows it can't achieve the requested CL it won't do > any writes, hinted or otherwise, and will immediately report > UnavailableException to the client. > To summarize: hinted writes are only generated when Cassandra (a) >

Why is cassandra named cassandra?

2010-07-08 Thread ChingShen
Hi, Why is cassandra named cassandra? Thanks. Shen

Re: Some questions about the write operation and hinted handoff

2010-07-08 Thread ChingShen
Hmm.. as you mentioned that it will *write a hint *and report success at CL.ANY, does the hinted handoff only work at CL.ANY? Thanks. On Thu, Jul 8, 2010 at 11:29 PM, Jonathan Ellis wrote: > On Thu, Jul 8, 2010 at 10:23 AM, ChingShen > wrote: > > Thanks Jonathan Ellis, > &g

Re: Some questions about the write operation and hinted handoff

2010-07-08 Thread ChingShen
, Jonathan Ellis wrote: > On Thu, Jul 8, 2010 at 12:45 AM, ChingShen > wrote: > > hmm... I'm really confused. > > The http://wiki.apache.org/cassandra/API document mentioned that if > write > > ConsistencyLevel=ANY that "Ensure the write has been written to at

Re: Question about hinted handoff

2010-07-08 Thread ChingShen
If so, when does hinted handoff work? On Thu, Jul 8, 2010 at 9:55 PM, Anty wrote: > > > On Thu, Jul 8, 2010 at 4:11 PM, ChingShen wrote: > >> Hi all, >> >> Please consider this case: (RF=1, CL=ONE) >> >> 1. I have A, B and C nodes. >> 2.

Re: Question about hinted handoff

2010-07-08 Thread ChingShen
So, am I correctly? Shen On Thu, Jul 8, 2010 at 5:33 PM, Anty wrote: > Sorry I am wrong .Miss the CF=one. > > > On Thu, Jul 8, 2010 at 5:27 PM, Anty wrote: > >> >> >> On Thu, Jul 8, 2010 at 4:11 PM, ChingShen wrote: >> >>> Hi all, &g

Gossip round time

2010-07-08 Thread ChingShen
Hi, I found the http://www.slideshare.net/adorepump/cassandra-nosql ppt, that mentioned "State disseminated in* O(logN)* rounds where N is the number of nodes in the cluster." about gossip on page 11. Is it wrong to draw on page 15? does it need round 4? Thanks. Shen

Question about hinted handoff

2010-07-08 Thread ChingShen
Hi all, Please consider this case: (RF=1, CL=ONE) 1. I have A, B and C nodes. 2. A node is a coordinator node, it sends a request to B node to do write operation. 3. B node is down during write operation, so return failure message to client, and write a hint to C node. 4. B node comes b

How to add a new Keyspace?

2010-07-07 Thread ChingShen
Hi all, If I want to add a new Keyspace, does it mean I have to distribute my storage-conf.xml to whole nodes? and restart whole nodes? Shen

Re: Some questions about the write operation and hinted handoff

2010-07-07 Thread ChingShen
or could anyone can give me a real case? Thanks. Shen On Thu, Jul 8, 2010 at 12:48 PM, Jonathan Ellis wrote: > No, it means that HH writes don't count towards meeting the requested > ConsistencyLevel. > > On Wed, Jul 7, 2010 at 9:36 PM, ChingShen wrote: > > So, does it me

Re: Some questions about the write operation and hinted handoff

2010-07-07 Thread ChingShen
So, does it mean that only the CL=ZERO and CL=ANY support hinted handoff, right? Thanks. Shen On Wed, Jul 7, 2010 at 11:28 PM, Jonathan Ellis wrote: > does http://wiki.apache.org/cassandra/HintedHandoff help? > > On Wed, Jul 7, 2010 at 10:16 AM, ChingShen > wrote: > > Tha

System control messages rely on UDP?

2010-07-07 Thread ChingShen
Hi all, I found the Cassandra paper(in 5.7 section) that mentioned "all system control messages rely on UDP", but when I start up my cluster, I haven't see any informations about UDP. Why? TCP connections: port 7000 = Gossip port 9160 = Thrift service port 8080 = JMX Right? Shen

Re: Some questions about the write operation and hinted handoff

2010-07-07 Thread ChingShen
Thanks Jonathan Ellis, If so, how does the hinted handoff work? I thought the coordinator node will write the data to another node(e.g. G node), I'm confused. Shen > > Second, if > > B node is down during the write operation, does it return failure(CL=ALL) > to > > user? > > yes > > -- > Jona

Re: Which node is coordinator node?

2010-07-06 Thread ChingShen
ave multiple nodes try a DNS round robin to distribute client > connections around. > Aaron > On 6 Jul 2010, at 22:10, ChingShen wrote: > > > Hi all, > > > > I'm newbie in Cassandra, I have a question about which node is > coordinator node in my cluster. >

Some questions about the write operation and hinted handoff

2010-07-06 Thread ChingShen
Hi all, I have A, B, C, D, E, F and G nodes(RF=3), if I run a write operation(CL=ALL) on "A" node(coordinator), and the key range between A and B, therefore, the data will be stored on B, C and D nodes, right? Second, if B node is down during the write operation, does it return failure(CL=ALL) t

Which node is coordinator node?

2010-07-06 Thread ChingShen
Hi all, I'm newbie in Cassandra, I have a question about which node is coordinator node in my cluster. I have A, B, C, D, E, F and G nodes. if I run a write operation on "A" node, and key range between A and B, so the A node is responsible to write the key to B, C and D nodes(RF=3) ? and does i