CRUD test

2010-07-21 Thread Oleg Tsvinev
Hi there, I'm trying to implement a simple CRUD service based on Cassandra. I use Hector client. While writing tests, I found out that if I create a few columns using API, then delete them from cassandra-cli and and re-create them using the same code (same key, etc), I can never get these new co

Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-21 Thread Aaron Morton
Take a look at the  get_slice  function http://wiki.apache.org/cassandra/APIYou could send one with a ColumnParent that only specifies the ColumnFamily and a SlicePredicate with a SliceRange where the start and finish values are empty strings. Set the count to an appropriate level to get them all (

Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-21 Thread Patricio Echagüe
Hi all, apologize before hand if this question sounds a bit dumb but I don't see what API I should use (if there is any) this is my model: row key A: SC_UUID_1: Col1, Col2, Col3 SC_UUID_2:

Re: Cassandra committing massive virtual memory

2010-07-21 Thread Aaron Morton
Are you using mmap or auto DiskAccessMode ?There is a known issue with memory mapped file access taking up a lot of memory. See CASSANDRA-1214 https://issues.apache.org/jira/browse/CASSANDRA-1214 there is also some discussion in the mail list here. Try setting the DiskAccessMode to standardAaronOn

Re: setting up a cluster

2010-07-21 Thread Dave Viner
For EC2, you can check out http://wiki.apache.org/cassandra/CloudConfig for details on the security settings. Note that on EC2, it's likely easiest if you place all your nodes in the same region. You can still make redundant/HA deployment using availability zones. If you use multiple AZs in the

Cassandra committing massive virtual memory

2010-07-21 Thread Amit Sinha
We are seeing cassandra using very high virtual memory. One server in the cluster shows 90GB and the other shows about 70GB of committed virtual memory. The real memory used is less than 1GB. The Xmx is 4GB. The physical memory on the machine is 32GB and the swap space on the machine is around 20GB

Re: setting up a cluster

2010-07-21 Thread Aaron Morton
This page may help http://wiki.apache.org/cassandra/MultinodeClusterit goes through the settings to change  in storage-config.xmlHave not used it on EC2 so cannot help there. AaronOn 22 Jul, 2010,at 08:34 AM, S Ahmed wrote:Is this the only documentation on startup up a cluster? http://wiki.apache.

setting up a cluster

2010-07-21 Thread S Ahmed
Is this the only documentation on startup up a cluster? http://wiki.apache.org/cassandra/GettingStarted I got a single node up, pretty straight forward. But have no idea how to setup a cluster. 1. Once I start a 2nd node, how do I tell it about th

Correct steps how to extend cluster size and RF

2010-07-21 Thread Juho Mäkinen
I'm just about to extend my current two node production cluster into five node cluster and I'd like to be sure that my plan is correct. Currently cluster has two nodes with RF=2. The target is to add four nodes, increase RF to 3 and drop one of the old nodes. My current plan is: 1) Add one node w

Re: Bootstrap question

2010-07-21 Thread Anthony Molinaro
Sure, looks like that's in 0.6.4, so I'll probably just rebuild my server based on the 0.6 branch, unless you want me to test just the patch for 1221? Most likely won't get a chance to try until tomorrow, so let me know. Thanks, -Anthony On Wed, Jul 21, 2010 at 06:58:13AM -0500, Gary Dusbabek w

Re: Estimated release for Cassandra 0.6.4

2010-07-21 Thread S Ahmed
So is it a good estimate to give about 1 month per +.1 release? i.e. 7.0 should be "around" October/November? (btw great work, keep it up!) On Wed, Jul 21, 2010 at 12:15 AM, CassUser CassUser wrote: > Thanks Eric. > > > On Tue, Jul 20, 2010 at 8:14 PM, Eric Evans wrote: > >> On Tue, 2010-07-2

Re: how come some nodes will drop nodes from the ring and not others?

2010-07-21 Thread Carlos Alvarez
On Tue, Jul 20, 2010 at 8:20 PM, Dathan Pattishall wrote: > No did not copy the data directories from one node to another. This > data is new data, newly created from scratch. > I ussualy see this behaviour after a node shutdown/startup but it tends to disappear over time (sometimes over 24 hours

Re: goods search with cassandra

2010-07-21 Thread Santal Li
I think build a ColumnValueFilter isn't a good idea, you really needs was a self defined index, otherwise filter will cause too many scan and disk IO. we have meet almost same problem as yours in our own webapp: store data in one fields, then get data by search on another fields. Our solution is c

Re: Re: What is consuming the heap?

2010-07-21 Thread Jonathan Ellis
On Tue, Jul 20, 2010 at 11:33 PM, Peter Schuller wrote: >>  INFO [GC inspection] 2010-07-21 01:01:49,661 GCInspector.java (line 110) GC for ConcurrentMarkSweep: 11748 ms, 413673472 reclaimed leaving 9779542600 used; max is 10873667584 >> ERROR [Thread-35] 2010-07-21 01:02:10,941 CassandraDaemon.ja

Re: Bootstrap question

2010-07-21 Thread Gary Dusbabek
Anthony, I think you're seeing the results of CASSANDRA-1221. Each node has two connections with its peers. One connection is used for gossip, the other for exchanging commands. What you see with 1221 is the command socket getting 'stuck' after a peer is convicted by gossip and then recovers.

Re: does Net::Cassandra work for 0.6.3?

2010-07-21 Thread Alexander Rothenberg
I installed thrift now and generated the perl-interface which is different to the one used in Net::Cassandra, so i would not recommend using it for any current recent versions since its depending on cassandra 0.5. On Tuesday 20 July 2010 16:15:58 Alexander Rothenberg wrote: > Hi, > we conside

SV: UnavailableException on QUORUM write

2010-07-21 Thread Per Olesen
>> And when one of my non-seed nodes in my 3 node cluster is down, I do NOT get >> the exception. >> Anyway, guess I need to try and reproduce it in small scale. > >Does it return w/ UE immediately, or does it wait for RPCTimeout first? It returns with UE immediately.