Re: Exception thrown when I restart one of the nodes

2009-11-14 Thread Ramzi Rabah
Hi Jonathan Why would there be no data associated with the key? All I did was restart the node while client threads were writing to the cluster. And what kind of impact does this bug cause? I can't make any more compactions on that node and I have to wipe out the data? How does the trunk fix this

Re: Can someone provide a PHP sample for super column?

2009-11-14 Thread iisbsd
Thanks Chris. Supercolumn may not be needed but since it's part of the API I need to work it out - there is no application yet, I need to know what we can go with Cassandra so that we can evaluate what we can migrate. I will follow what you mentioned and see how far I can go. -Origina

RE: Can someone provide a PHP sample for super column?

2009-11-14 Thread Christopher McKenzie
Sure. But let me encourage you to think about your application. Most ones I have ran into don't need supercolumns. First you need to specify the column to be of the type super in the storage-conf.xml file. There are a few examples of that. Then when you use the api to construct things called

Re: Exception thrown when I restart one of the nodes

2009-11-14 Thread Jonathan Ellis
The failing assertion is there to check that there actually is data associated with the key. Easiest fix to try is code from trunk. On Sat, Nov 14, 2009 at 4:08 PM, Ramzi Rabah wrote: > Hi all: > I am using version 0.4.2 of Cassandra, and whenever I restart one of > the nodes only I am getting t

Exception thrown when I restart one of the nodes

2009-11-14 Thread Ramzi Rabah
Hi all: I am using version 0.4.2 of Cassandra, and whenever I restart one of the nodes only I am getting the following exception consistently: INFO - Compacting [/disk1/cassandra/data/Keyspace1/Datastore-1-Data.db,/disk1/cassandra/data/Keyspace1/Datastore-2-Data.db,/disk1/cassandra/data/Keyspace1/D

Re: backing up data from cassandra

2009-11-14 Thread Chris Were
Better late than never... ticket created. On Thu, Oct 29, 2009 at 4:33 AM, Jonathan Ellis wrote: > programatically, yes, but nodeprobe doesn't expose that yet. Feel > free to create a ticket. > > On Thu, Oct 29, 2009 at 4:20 AM, Chris Were wrote: > > Is it possible to only backup selected colu

Re: Timeout Exception

2009-11-14 Thread Chris Were
I've only just got to looking at this again... which config file value are you referring to here? Chris. On Mon, Nov 9, 2009 at 9:09 PM, Igor Katkov wrote: > I experienced this - it's might be GC or compaction process. Try to > increase timeout value in the config file. It's not a fix, but at l

Re: Why cassandra single node so slow?

2009-11-14 Thread Michael Greene
lazyboy had a thread-based connection pool last time I checked, so he should just have to thread his test loop for it to use multiple connections. MySQL should suffer the same general problem though, although I don't know the specifics of the MySQLdb module. Based on his test, it's accurate to sa

Re: Why cassandra single node so slow?

2009-11-14 Thread Brandon Williams
On Sat, Nov 14, 2009 at 5:47 AM, ruslan usifov wrote: > Hello! > > I'm new in cassandra son i can misunderstand some things. > > In follow "benchmark". I have insert 400 records like this > *snip* > # Define your cluster(s) > connection.add_pool('test', ['localhost:9160']) > This is your pr

Re: Why cassandra single node so slow?

2009-11-14 Thread TuxRacer69
Looking at http://assets.en.oreilly.com/1/event/27/Cassandra_%20Open%20Source%20Bigtable%20+%20Dynamo%20Presentation.pdf page 26 Cassandra should make around 100 read per sec and around 10,000 writes per sec (on the data equivalent of a 50Gb mysql db) so your results seem OK How do your result

RE: java API?

2009-11-14 Thread Coe, Robin
Hi Mark, You need to build the project with ant, then add the generated class files to your build path. Conversely, you can add the pre-built jar but then you'll end up with namespace collisions with the source in your IDE. Eclipse *should* use the source first, as long as you don't reorder t

Re: Why cassandra single node so slow?

2009-11-14 Thread ruslan usifov
Nо. But i think that all data will be in memory and gstat (FreeBSD utility) show that no any disk activity. 2009/11/14 TuxRacer69 > Hi Ruslan, > > did you store the logs and the data on 2 different disks as described at: > http://wiki.apache.org/cassandra/StorageConfiguration > and > http://wiki

Re: Why cassandra single node so slow?

2009-11-14 Thread TuxRacer69
Hi Ruslan, did you store the logs and the data on 2 different disks as described at: http://wiki.apache.org/cassandra/StorageConfiguration and http://wiki.apache.org/cassandra/FAQ#what_kind_of_hardware_should_i_use ? Cheers TuxRacer ruslan usifov wrote: Hello! I'm new in cassandra son i can m

Why cassandra single node so slow?

2009-11-14 Thread ruslan usifov
Hello! I'm new in cassandra son i can misunderstand some things. In follow "benchmark". I have insert 400 records like this {"value": str(i), "text": "some small text"} I use lazyboy lib (http://github.com/digg/lazyboy) to simplify work with cassandra thrift interface. So my insert python

Re: configuration file comments on wiki

2009-11-14 Thread TuxRacer69
Eric Evans wrote: Actually, I think it would be great to have it in both places, the problem stems from each being updated independently (and yes, one of them will almost certainly suffer from lack of updates). I don't suppose something like Doxygen could be made to work with xml I believe it