Questions about data modeling

2010-06-24 Thread Dmitrii Dimandt
I'm currently trying to wrap my head around Cassandra which is definitely not easy for a mind deeply entrenched in SQL :) I see how blogs/tweets etc. can be modeled in Cassandra. However, I have a sightly different problem. Let's say we let the user see a random item(article/picture/recipe/you-

Re: KeyRange deletion

2010-06-24 Thread Gary Dusbabek
See CASSANDRA-293 and CASSANDRA-494. Key-range updates touch multiple rows and cannot be performed atomically, so the consistency promise you get would be the same as with batch_mutate. Another other problem is that the update needs to be sent to *any* node that is responsible for part of the ran

Re: Hector vs cassandra-java-client

2010-06-24 Thread Jools
I'm currently using apache archiva instance as a private caching maven repository. I've manually added the nonpublic artifacts to the cache which makes life a great deal simpler. See http://archiva.apache.org/ Regards, --Jools On 24 June 2010 07:36, Ran Tavory wrote: > Hector has a pom.xml wh

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-24 Thread Ran Tavory
Here's what we have for hector: wiki: http://wiki.github.com/rantav/hector/ blog posts: http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/ http://prettyprint.me/2010/03/03/load-balancing-and-improved-failover-in-hector/ http://prettyprint.me/2010/04/03/jmx-in-hector/ Examples: Exa

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-24 Thread Gavan Hood
Thanks Ran, I downloaded those, ReadAllKeys worked straight up, very good example, I have already got ExampleClient working so ditto there :-) I am searching for the defintion of Command in ExampleDAO getallkey slices and keyspace test have a few more unresolved externals like junit, mockito and ot

Re: Call for input of cassandra, thrift , hector, pelops example / sample / test code snippets

2010-06-24 Thread Ran Tavory
Thanks for this effort Gavan :) On Thu, Jun 24, 2010 at 3:47 PM, Gavan Hood wrote: > Thanks Ran, > I downloaded those, > ReadAllKeys worked straight up, very good example, I have already got > ExampleClient working so ditto there :-) > I am searching for the defintion of Command in ExampleDAO >

Re: Hector vs cassandra-java-client

2010-06-24 Thread Jesse McConnell
ya, until the developers decide to go the route of most other apache projects and use maven and deploy artifacts into maven central your best bet is to manage it yourself and install into a repository manager and like archiva and nexus then you can reference things as normal, just a minor bit of m

Re: Questions about data modeling

2010-06-24 Thread altanis
About the most popular item, you could probably store the k most popular items in a ColumnFamily with appropriate columns, and every time someone casts a vote, check whether they need updating/replacement. Alexander > I'm currently trying to wrap my head around Cassandra which is definitely > not

Re: Hector vs cassandra-java-client

2010-06-24 Thread Ran Tavory
fwiw we use nexus and it's quite nice. But ya - that doesn't solve your problem, sorry... I can only offer the ant build script from hector... (or the mvn script which works well if you download all dependencies locally) On Thu, Jun 24, 2010 at 4:49 PM, Jesse McConnell wrote: > ya, until the deve

Map Reduce support

2010-06-24 Thread Atul Gosain
Hi What kind of Map Reduce support is provided for Cassandra ? Can i get some columns from different rows and then aggregate them up together. Its basically aggregation of statistics for various devices connected to a network manager. Is it a right kind of use case to be supported by MR ? Thank

Re: Questions about data modeling

2010-06-24 Thread Dmitrii Dimandt
Indeed. So simple it didn't even cross my mind :) Thank you! On Thu, Jun 24, 2010 at 5:00 PM, wrote: > About the most popular item, you could probably store the k most popular > items in a ColumnFamily with appropriate columns, and every time someone > casts a vote, check whether they need updat

Re: Hector vs cassandra-java-client

2010-06-24 Thread Bjorn Borud
Jesse McConnell writes: > ya, until the developers decide to go the route of most other apache > projects and use maven and deploy artifacts into maven central your > best bet is to manage it yourself and install into a repository > manager and like archiva and nexus the issue is a bit worse. t

Re: UUIDs whose alphanumeric order is the same as their chronological order

2010-06-24 Thread Tatu Saloranta
On Wed, Jun 23, 2010 at 12:18 AM, David Boxenhorn wrote: > Tatu, I did read your comments - and I appreciate them very much! > > I want someone to argue with me (using good arguments) since what I'm doing > *does* seem weird to me - because no one else is doing it. > > What I mean by readable is t

Re: SQL Server to Cassandra Schema Design - Ideas Anyone?

2010-06-24 Thread Jonathan Ellis
the main idea is "denormalize your data into multiple CFs at write time so that each CF lets you answer a query from a single row." http://www.rackspacecloud.com/blog/2010/05/12/cassandra-by-example/ is a good place to start. On Tue, Jun 22, 2010 at 3:43 PM, Craig Faulkner wrote: > I'm having a

Re: Timeout when cluster node fails/restarts

2010-06-24 Thread Jonathan Ellis
getting a TimedOutException for a few requests when a machine fails before Cassandra's Failure Detector notices is normal. On Wed, Jun 23, 2010 at 12:34 PM, Wouter de Bie wrote: > Hi, > > I've currently setup a cluster of 11 nodes. When running a small application > that uses Hector to read and

Re: cassandra_browser not in contrib

2010-06-24 Thread Jonathan Ellis
apparently the git mirror is so far behind that it doesn't know that cassandra_browser was removed for lack of maintenance weeks ago. On Wed, Jun 23, 2010 at 2:26 PM, Eben Hewitt wrote: > The python cassandra_browser is not in the contrib directory if I clone from > git, but it is present if I ch

Re: Occasional 10s Timeouts on Read

2010-06-24 Thread Jonathan Ellis
Glad you tracked that down! On Wed, Jun 23, 2010 at 6:14 PM, AJ Slater wrote: > This issue is caused by my network. > > Cassandra maintains multiple gossip connections per node pair. One of > these connections is used for heartbeat and load broadcasting traffic. > Its quite talky. Another one is

Re: 10 minute cassandra pause

2010-06-24 Thread Jonathan Ellis
Right, I think there must be some other factor here because neither the flush nor discard of obsolete commitlog segments block writes. On Wed, Jun 23, 2010 at 7:05 PM, Sean Bridges wrote: > I see about 3000 lines of, > > INFO [COMMIT-LOG-WRITER] 2010-06-23 16:40:29,107 CommitLog.java (line > 412)

Re: Map Reduce support

2010-06-24 Thread Jonathan Ellis
does http://wiki.apache.org/cassandra/HadoopSupport help? On Thu, Jun 24, 2010 at 11:01 AM, Atul Gosain wrote: > Hi >   What kind of Map Reduce support is provided for Cassandra ? > Can i get some columns from different rows and then aggregate them up > together. Its basically aggregation of stat

Can 0.6.2 and 0.6.1 servers coexist in a cluster?

2010-06-24 Thread Claire Chang
if not? I assume upgrading from .6.2 from .6.1 is just updating the server binary? thanks, Claire

Re: Can 0.6.2 and 0.6.1 servers coexist in a cluster?

2010-06-24 Thread Jonathan Ellis
Yes On Thu, Jun 24, 2010 at 10:33 PM, Claire Chang wrote: > if not? I assume upgrading from .6.2 from .6.1 is just updating the server > binary? > > thanks, > Claire -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://