Re: CRUD test

2010-07-22 Thread Colin Vipurs
Have you checked the timestamp you're using for the subsequent inserts is higher than that used in the delete? On Thu, Jul 22, 2010 at 2:29 AM, Oleg Tsvinev wrote: > Hi there, > I'm trying to implement a simple CRUD service based on Cassandra. I use > Hector client. > While writing tests, I found

Re: goods search with cassandra

2010-07-22 Thread Chen Xinli
Thanks for your suggestion. Does it work if insertion through thrift client, and reading through cassandra directly like ClientOnlyExample? 2010/7/21 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 man

Re: Cassandra committing massive virtual memory

2010-07-22 Thread Peter Schuller
> 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 a

Looking for recommendation on DELL server types/spec for running Cassandra nodes

2010-07-22 Thread Simon Reavely
Hi, I'm looking for a recommendation on DELL server types/spec for running Cassandra nodes What model DELL servers are folks using with success? What models or type of hardware have people regretted using? -- Simon Reavely simon.reav...@gmail.com

Re: Bootstrap question

2010-07-22 Thread Gary Dusbabek
On Wed, Jul 21, 2010 at 14:14, Anthony Molinaro wrote: > 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. > Either way

Re: Cassandra committing massive virtual memory

2010-07-22 Thread Amit Sinha
The DiskAccessMode is set to auto. I am going to try with standard and see, but i am concerned how much that would affect performance negatively. thx Amit On Wed, Jul 21, 2010 at 3:59 PM, Aaron Morton wrote: > Are you using mmap or auto DiskAccessMode ? > > There is a known issue with memory map

Lucene CassandraDirectory Implementation

2010-07-22 Thread Utku Can Topçu
Hi All, I was browsing through the Lucene JIRA and came across the issue named "A Column-Oriented Cassandra-Based Lucene Directory" at https://issues.apache.org/jira/browse/LUCENE-2456 Has anyone had a chance to test it? If so, do you think it's an efficient implementation as a replacement for th

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

2010-07-22 Thread Patricio Echagüe
Hi Aaron, the problem I have is that those UUIDs are random numbers. 2,3,4 are not sequential unfortunately. I don't think there is an API like mutiget_slice for key but for Super Column names. Is there any other way to specify a list of super column names to read where those names are not sequent

Requesting data model suggestions

2010-07-22 Thread Scott Mann
Hello, Although, I've done a bit of reading about Cassandra's data model and I've set up a Cassandra pair, I'm still unsure as to what might be best for my purposes. Briefly, I've got a set of strings A, B, and C. If needed, A could be represented as an integer. Each A is associated with exactly

Re: Script 'hangs' when i stop 1 cassandra node (of 4 nodes)

2010-07-22 Thread Jonathan Ellis
I think you need to narrow down your problem before we can help. :) On Tue, Jul 20, 2010 at 7:03 AM, Pieter Maes wrote: >  Hi, > > I'm currently using Cassandra 0.6.3 with php thrift (svn r959516) in the > phpcassa wrapper (last git + a fix of mine that fixes strange > timeouts..). (yeah i use ph

Cassandra Chef recipe and EC2 snitch

2010-07-22 Thread Allan Carroll
Hi all, I'm setting up a new cluster on EC2 for the first time and looking at the wiki cloud setup page (http://wiki.apache.org/cassandra/CloudConfig). There's a chef recipe linked there that mentions an ec2snitch. The link doesn't seem to go where it says it does. Does anyone know where those

Re: Cassandra Chef recipe and EC2 snitch

2010-07-22 Thread Dave Viner
You don't need the ec2snitch necessarily. AFAIK, It's meant to be a "better" way of detecting where your ec2 instances are. But, unless you're popping instances all the time, I don't think it's worth it. Check out the step-by-step guide on that same page. Pure EC2 api calls to setup your cluste

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

2010-07-22 Thread Patricio Echagüe
Hey thanks Aaron. It finally worked. The API reference looked a bit confusing to me. I used (as you suggested): ColumnParent parent = new ColumnParent( ); SlicePredicate sp = new SlicePredicate(); sp.setColumn_names( ); after calling get

Re: CRUD test

2010-07-22 Thread Oleg Tsvinev
Yes, and that was the issue. But now after I delete a row from cassandra-cli, I cannot insert anything back with my code. Insert code works does not throw any exceptions but when I read just inserted columns I get NotFoundException at the last line: client = borrowClient();

RE: CRUD test

2010-07-22 Thread Peter Minearo
I am able to reproduce his problem. If you take the default storage-conf.xml file and utilize the "Super2" ColumnFamily with the code below. You will see that the data is not getting created once you run the delete. It seems to not allow you to create data via Thrift. HOWEVER, data can be cre

Re: Re: Re: What is consuming the heap?

2010-07-22 Thread 王一锋
Yes, I'm running with defaults settings otherwise. For cache sizes, I've tried '0' for non-cached, '1' for full cached and a fixed value of 50, for KeysCached, RowsCached was using default everytime. So I don't think the problem is about the cache. Concurrent read was 32, write was 64 I also t

Re: Re: Re: What is consuming the heap?

2010-07-22 Thread 王一锋
Yes, we are doing a lot of inserts. But how can CASSANDRA-1042 cause an OutOfMemory? And we are using multigetSlice(). We are not doing any get_range_slice() at all. 2010-07-23 发件人: Jonathan Ellis 发送时间: 2010-07-21 21:17:21 收件人: user 抄送: 主题: Re: Re: What is consuming the heap? On T

Re: Re: Re: What is consuming the heap?

2010-07-22 Thread 王一锋
The version we are using is 0.6.1 2010-07-23 发件人: 王一锋 发送时间: 2010-07-23 09:38:15 收件人: user 抄送: 主题: Re: Re: Re: What is consuming the heap? Yes, we are doing a lot of inserts. But how can CASSANDRA-1042 cause an OutOfMemory? And we are using multigetSlice(). We are not doing any get

POM for Cassandra Client

2010-07-22 Thread Todd Stavish
I couldn't find a decent maven setup for Cassandra. Here's a link to my setup instructions. Cassandra jar is referenced from the local filesystem, the rest of the dependencies are pulled from public repos. http://bit.ly/c5hw6X