Re: the process of reading and writing

2010-09-03 Thread Ying Tang
Hi Aaron Thanks for your reply. In you text , does the coordinator means the random client that user send request to ? Do you mean no matter how many W is assigned to , the data will copy on N node ? Just the client will think this write action is successful when W nodes are be written ? Ps. The

Re: question about Cassandra error

2010-09-03 Thread Benjamin Black
You seem to be typing 0.7 commands on a 0.6 cli. Please follow the README in the version you are using, e.g.: set Keyspace1.Standard2['jsmith']['first'] = 'John' On Thu, Sep 2, 2010 at 5:35 PM, Simon Chu simonchu@gmail.com wrote: I downloaded cassendra 0.6.5 and ran it, got this error:

Re: the process of reading and writing

2010-09-03 Thread Benjamin Black
On Thu, Sep 2, 2010 at 8:19 PM, Ying Tang ivytang0...@gmail.com wrote: Recently , i read the paper about Cassandra again . And now i have some concepts about  the reading and writing . We all know Cassandra uses NWR , When read : the request --- a random node in Cassandra .This node acts as a

Re: the process of reading and writing

2010-09-03 Thread Ying Tang
In dynamo's paper ,it says: Each key, k, is assigned to a coordinator node . The coordinator is in charge of the replication of the data items that fall within its range. On Fri, Sep 3, 2010 at 2:56 PM, Benjamin Black b...@b3k.us wrote: On Thu, Sep 2, 2010 at 8:19 PM, Ying Tang

Re: 4k keyspaces... Maybe we're doing it wrong?

2010-09-03 Thread Mike Peters
Very interesting. Thank you So it sounds like other than being able to quickly truncate customer-keyspaces, with Cassandra there's no real benefit in keeping each customer data in a separate keyspace. We'll suffer on the memory side with all the switching between keyspaces and we're better

indexing methods

2010-09-03 Thread Courtney Robinson
A few of us working on a book for casanadra and got to the point where we (well I did anyway) wanted to include an example of a non trivial inverted index. I've been playing around with different ideas on how I could store the data and I've had a look at the previous threads that touched on

Re: 4k keyspaces... Maybe we're doing it wrong?

2010-09-03 Thread vineet daniel
If I am correct than you need to restart cassandra whenever you adding a new KeySpace. Thats another concern. Vineet Daniel Cell : +91-8106217121 Websites : Blog http://vinetedaniel.blogspot.com | Linkedinhttp://in.linkedin.com/in/vineetdaniel | Twitter

Re: 4k keyspaces... Maybe we're doing it wrong?

2010-09-03 Thread Mike Peters
We're using 0.7 On 9/3/2010 6:48 AM, vineet daniel wrote: If I am correct than you need to restart cassandra whenever you adding a new KeySpace. Thats another concern. Vineet Daniel Cell : +91-8106217121 Websites : Blog http://vinetedaniel.blogspot.com | Linkedin

Re: indexing methods

2010-09-03 Thread Jake Luciani
Hi Courtney, You can take a look at lucandra http://github.com/tjake/Lucandra which uses the lucene api to maintain a inverted index in cassandra. There are a couple articles and presentations in the readme that give more info on how this is done. -Jake On Fri, Sep 3, 2010 at 6:26 AM, Courtney

Consistency issue

2010-09-03 Thread Hugo
Hi, I'm performing tests with Cassandra 0.6.5 with Hector 0.6.0-14 on a single machine (one node cluster). I've noticed an issue with consistency. In my tests I perform a KeySpace.batchMutate() to update a column and immediately after that I perform a KeySpace.getSlice() on the same column

Re: Consistency issue

2010-09-03 Thread Nick Telford
Which ConsistencyLevels did you use for your batchMutate() and getSlice() operations? ConsistencyLevels directly dictate the level of consistency you will get with your data. Regards, Nick Telford On 3 September 2010 12:03, Hugo h...@unitedgames.com wrote: Hi, I'm performing tests with

Re: Consistency issue

2010-09-03 Thread Hugo
I'm using QUORUM, but in my single-node setup this doesn't matter IMHO. On 9/3/2010 1:51 PM, Nick Telford wrote: Which ConsistencyLevels did you use for your batchMutate() and getSlice() operations? ConsistencyLevels directly dictate the level of consistency you will get with your data.

Re: Consistency issue

2010-09-03 Thread Nick Telford
Are you using QUORUM for both writes and reads? The behaviour you're seeing sounds like something I'd expect to see if you used NONE for writes. On 3 September 2010 14:12, Hugo h...@unitedgames.com wrote: I'm using QUORUM, but in my single-node setup this doesn't matter IMHO. On 9/3/2010

Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Viktor Jevdokimov
Hi, We're not setting cache capacity upon creation of Column Family, since the type and capacity is unknown at that time. By default it = 0. After Column Family has enough data and we could decide on cache type (Row or Key) and capacity, we connect with JConsole and set cache capacity manually

Re: Consistency issue

2010-09-03 Thread Hugo
I'm using the Hector defaults, which are QUORUM for reads and writes. On 9/3/2010 3:18 PM, Nick Telford wrote: Are you using QUORUM for both writes and reads? The behaviour you're seeing sounds like something I'd expect to see if you used NONE for writes. On 3 September 2010 14:12, Hugo

Re: Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Edward Capriolo
On Fri, Sep 3, 2010 at 9:22 AM, Viktor Jevdokimov viktor.jevdoki...@adform.com wrote: Hi, We’re not setting cache capacity upon creation of Column Family, since the type and capacity is unknown at that time. By default it = 0. After Column Family has enough data and we could decide on

Re: the process of reading and writing

2010-09-03 Thread Jonathan Ellis
To the degree that this suggests that there is a master node for each range, IMO it is a bug in the paper. (There are several of these.) Certainly there are no master nodes in Cassandra. On Fri, Sep 3, 2010 at 12:02 AM, Ying Tang ivytang0...@gmail.com wrote: In dynamo's paper ,it says: Each

RE: Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Viktor Jevdokimov
Forgot to mention the version: 0.7 beta 1 -Original Message- From: Edward Capriolo [mailto:edlinuxg...@gmail.com] Sent: Friday, September 03, 2010 4:59 PM To: user@cassandra.apache.org Subject: Re: Cache capacity set with JConsole is lost after restart On Fri, Sep 3, 2010 at 9:22 AM,

Re: Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Jonathan Ellis
That doesn't matter, the config file is the Source Of Truth for the values it has. On Fri, Sep 3, 2010 at 7:12 AM, Viktor Jevdokimov viktor.jevdoki...@adform.com wrote: Forgot to mention the version: 0.7 beta 1 -Original Message- From: Edward Capriolo [mailto:edlinuxg...@gmail.com]

Re: Impact on running cassandra cluster from changing hostnames...

2010-09-03 Thread Jonathan Ellis
It's supposed to work, but it's definitely a rare thing to do. You should be concerned about other nodes rejecting the new node saying remember this token? i'm at ip Y now instead of Z. if that happens then shutting down all nodes and restarting will fix it. On Thu, Sep 2, 2010 at 3:03 PM, Ned

Re: Re: Broken pipe

2010-09-03 Thread Jonathan Shook
I have been able to reproduce this, although it was a bug in application client code. If you keep a thrift client around longer after it has had an exception, it may generate this error. In my case, I was holding a reference via ThreadLocal to a stale storage object. Another symptom which may

RE: Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Jeremiah Jordan
But the config file doesn't hold those values anymore with 0.7. There is a JIRA ticket out there for api's to modify stuff about column families in 0.7, it may cover doing this. I would guess that the tracking tables in the system keyspace aren't being updated with the values you are setting

Re: Cache capacity set with JConsole is lost after restart

2010-09-03 Thread Jonathan Ellis
Right, in 0.7 the system calls for modifying these are the source of truth. See https://issues.apache.org/jira/browse/CASSANDRA-1285 On Fri, Sep 3, 2010 at 11:17 AM, Jeremiah Jordan jeremiah.jor...@morningstar.com wrote: But the config file doesn't hold those values anymore with 0.7. There is