Re: problem with running simple example using cassandra-cli with 0.6.0-beta2

2010-03-12 Thread Bill Au
Thanks. With 0.6.0-beta2 using Standard2 does show a human-readable column. However, the behavior is definitely different between 0.5.1 and 0.6.0-beta2. I am using the binary distribution of 0.5.1: cassandra show version 0.5.1 cassandra set Keyspace1.Standard1['jsmith']['first'] = 'John' Value

get_range_slice(s) question

2010-03-12 Thread Omer van der Horst Jansen
I've noticed that both 0.5.1 and 0.6b2 return (ReplicationFactor) identical copies of the data stored in my keyspace whenever I make a call to get_range_slice or get_range_slices using ConsistencyLevel.QUORUM. So with ReplicationFactor set to 2 for my application's KeySpace I get double the

Re: problem with running simple example using cassandra-cli with 0.6.0-beta2

2010-03-12 Thread Eric Evans
On Fri, 2010-03-12 at 11:21 -0500, Bill Au wrote: Thanks. With 0.6.0-beta2 using Standard2 does show a human-readable column. However, the behavior is definitely different between 0.5.1 and 0.6.0-beta2. I am using the binary distribution of 0.5.1: cassandra show version 0.5.1

Re: problem with running simple example using cassandra-cli with 0.6.0-beta2

2010-03-12 Thread Bill Au
Thanks for clearing this up for me. Bill On Fri, Mar 12, 2010 at 11:49 AM, Eric Evans eev...@rackspace.com wrote: On Fri, 2010-03-12 at 11:21 -0500, Bill Au wrote: Thanks. With 0.6.0-beta2 using Standard2 does show a human-readable column. However, the behavior is definitely different

Re: Effective allocation of multiple disks

2010-03-12 Thread Eric Rosenberry
Ryan- Are you going to use software or hardware based RAID 0? Does anyone on the list have any data to compare the performance of hardware RAID 0 vs. software LVM RAID 0? I would think software RAID 0 would be fine since there is no actual computation being done... Thanks! -Eric On Thu, Mar

How to force GC in Cassandra?

2010-03-12 Thread Weijun Li
Suppose I insert a lot of new items but also delete a lot of new items daily, it will be ideal if I can force GC to happen during mid night (when traffic is low). Is there any way to manually force GC to be executed? In this way I can add a cronjob to trigger gc in mid night. I tried nodetool and

Re: Effective allocation of multiple disks

2010-03-12 Thread Ted Zlatanov
On Thu, 11 Mar 2010 12:01:27 -0600 Eric Evans eev...@rackspace.com wrote: EE On Wed, 2010-03-10 at 23:20 -0600, Jonathan Ellis wrote: On Wed, Mar 10, 2010 at 9:31 PM, Anthony Molinaro antho...@alumni.caltech.edu wrote: I would almost recommend just keeping things simple and removing

Cassandra Demo/Tutorial Applications

2010-03-12 Thread Krishna Sankar
I was looking at this from CASSANDRA-873 as well as hands-on homework (!) for my OSCON tutorial. Have couple of questions. Would appreciate insights: A) Cassandra-873 suggests Luenandra as one demo application B) Are there other ideas that will bring out the various aspects of Cassandra ? C)

Re: get_range_slice(s) question

2010-03-12 Thread Jonathan Ellis
That would be a bug, not intended behavior. Can you open a ticket? On Fri, Mar 12, 2010 at 11:48 AM, Omer van der Horst Jansen ome...@yahoo.com wrote: I've noticed that both 0.5.1 and 0.6b2 return (ReplicationFactor) identical copies of the data stored in my keyspace whenever I make a call to

Re: How to force GC in Cassandra?

2010-03-12 Thread Jonathan Ellis
I think you mean compaction? You can use nodeprobe / nodetool for that. http://wiki.apache.org/cassandra/NodeProbe On Fri, Mar 12, 2010 at 12:40 PM, Weijun Li weiju...@gmail.com wrote: Suppose I insert a lot of new items but also delete a lot of new items daily, it will be ideal if I can

Re: Effective allocation of multiple disks

2010-03-12 Thread Ryan King
We're going to us software raid. -ryan On Fri, Mar 12, 2010 at 9:24 AM, Eric Rosenberry epros...@gmail.com wrote: Ryan- Are you going to use software or hardware based RAID 0? Does anyone on the list have any data to compare the performance of hardware RAID 0 vs. software LVM RAID 0? I

Grails Cassandra plugin

2010-03-12 Thread Ned Wolpert
Folks- I put together a quick n' dirty grails plugin for Cassandra, wrapped with Hector. Its available at http://github.com/wolpert/grails-cassandra in its initial state. I wouldn't call it 'production-ready' yet. :-) We're using Cassandra at work and I wanted an easy way to access Cassandra

Cassandra 0.5.1 get_key_range problem

2010-03-12 Thread Jon Graham
Hello, When using the get_key_range method with ConsistencyLevel.ONE an entire block of keys is not returned. I loop over the get_key_range method, advancing the start key after each call (requesting 8K keys per call). When running the program several times, I got the same results with large key

Re: Grails Cassandra plugin

2010-03-12 Thread Jonathan Ellis
Great! You should also link it from http://wiki.apache.org/cassandra/ClientExamples (click Login at the top to create an account.) On Fri, Mar 12, 2010 at 3:57 PM, Ned Wolpert ned.wolp...@imemories.com wrote: Folks-   I put together a quick n' dirty grails plugin for Cassandra, wrapped with

Re: Cassandra 0.5.1 get_key_range problem

2010-03-12 Thread Jonathan Ellis
get_key_range is deprecated. You should use get_range_slice. On Fri, Mar 12, 2010 at 3:59 PM, Jon Graham sjclou...@gmail.com wrote: Hello, When using the get_key_range method with ConsistencyLevel.ONE an entire block of keys is not returned. I loop over the get_key_range method, advancing

Re: Grails Cassandra plugin

2010-03-12 Thread Ned Wolpert
Document updated On Fri, Mar 12, 2010 at 2:50 PM, Jonathan Ellis jbel...@gmail.com wrote: Great! You should also link it from http://wiki.apache.org/cassandra/ClientExamples (click Login at the top to create an account.) On Fri, Mar 12, 2010 at 3:57 PM, Ned Wolpert

Re: Grails Cassandra plugin

2010-03-12 Thread Ran Tavory
great, I'm happy you found Hector useful :) btw, in hector 0.5.0-8 I added some interesting performance JMX counters so may be worth to update yours from 0.5.0-6 to -8 when you have time. On Fri, Mar 12, 2010 at 11:55 PM, Ned Wolpert ned.wolp...@imemories.comwrote: Document updated On Fri,

Re: SuperColumn.getSubColumns() ordering

2010-03-12 Thread Matteo Caprari
Thanks. On Thu, Mar 11, 2010 at 6:46 PM, Jonathan Ellis jbel...@gmail.com wrote: it's ordered by the column name as determined by the subcolumn comparator you declared in the definition, yes On Thu, Mar 11, 2010 at 12:24 PM, Matteo Caprari matteo.capr...@gmail.com wrote: Hi. If I iterate

Re: Grails Cassandra plugin

2010-03-12 Thread Ned Wolpert
I added an issue in my github project for the update. Since I have your ear, in hector, if the cassandra server restarts (one server in the pool) hector will not try to reconnect to the cassandra server even if its listening. Is that a known issue? On Fri, Mar 12, 2010 at 3:35 PM, Ran Tavory

Re: Strategies for storing lexically ordered data in supercolumns

2010-03-12 Thread Peter Chang
My original post is probably confusing. I was originally talking about columns and I don't see what the solution is. * So I was thinking I set the subcolumn compareWith to UTF8Type or BytesType and construct a key [for the subcolumn, not a row key] * * * *[user's lastname + user's firstname +

Re: Strategies for storing lexically ordered data in supercolumns

2010-03-12 Thread Brandon Williams
On Fri, Mar 12, 2010 at 7:21 PM, Peter Chang pete...@gmail.com wrote: My original post is probably confusing. I was originally talking about columns and I don't see what the solution is. Sorry, I misunderstood. * So I was thinking I set the subcolumn compareWith to UTF8Type or BytesType and

Re: Strategies for storing lexically ordered data in supercolumns

2010-03-12 Thread Peter Chang
Yes, I can update that one entry. But what if that subcolumn key is used across many different places? ['Jones-Bob']['connections'] ['Hacker-Alyssa-1ab54760-2ca8-11df-aabd-005056c1'] ['Crabtree-Sam']['connections'] ['Hacker-Alyssa-1ab54760-2ca8-11df-aabd-005056c1']

Re: Cassandra Demo/Tutorial Applications

2010-03-12 Thread Jonathan Ellis
On Fri, Mar 12, 2010 at 1:55 PM, Krishna Sankar ksanka...@gmail.com wrote: I was looking at this from CASSANDRA-873 as well as hands-on homework (!) for my OSCON tutorial. Have couple of questions. Would appreciate insights: A)  Cassandra-873 suggests Luenandra as one demo application B)  Are

About the replication strategy of Cassandra

2010-03-12 Thread Kauzki Aranami
Hi all. I am interested in the architecture of Cassandra. Cassandra offers the replication policy such as Rack Unaware Rack Aware(within a datacenter) Datacenter Aware. It is necessary to select these replication policies by the application. The algorithm when the replication policy based on

Re: Incr/Decr Counters in Cassandra

2010-03-12 Thread Vijay
Badly need it for my work let me know if i can do something to speed it up :) Regards, /VJ On Wed, Nov 4, 2009 at 1:32 PM, Chris Goffinet goffi...@digg.com wrote: Hey, At Digg we've been thinking about counters in Cassandra. In a lot of our use cases we need this type of support from a