Need help in cassandra data model..

2010-09-01 Thread Manikandan R
Hello Everyone, I am doing study on cassandra to make use of it for the below problem - My current system has many components. To complete any transaction(request), it has to pass through all the components. While it passes through, there is no clear visibility to know what is happening behind ea

Re: Need help in cassandra data model..

2010-09-01 Thread aaron morton
From what you have described that sounds OK (am assuming there is not millions of events per transaction). When designing the model consider all the ways you will want to read the data back and then dernomalize the data appropriately. Ideally each request for data from cassandra should be handle

Server problem C 0.6.5

2010-09-01 Thread Thorvaldsson Justus
Ok I have two test servers, they are RH and pretty nice. I have two problems with one of them and none with the other. Same configuration but the seed and listen address that is their opposites. Nothing fancy. RF=2 All info I can get is also here and some more like conf, 590 rows http://pastie.o

LongString

2010-09-01 Thread Kevin Irwig
Hi, I came across this presentation (link below) by Sarkissian (no first name given) at Digg about their use of Cassandra. On page 27 he says "Custom comparators turn out to be key" and mentions in the next few slides a LongString (actually once a LongString the other times a LongSting, but I'm

dont mind my last letter (server problem)

2010-09-01 Thread Thorvaldsson Justus
Or this one =) Server error was indeed an error but on my behalf. If you try to memlock more than available memory on server it will kernel crash Also If you use swap as ram it will be having a lot of trouble /J AB SVENSKA SPEL 106 10 Stockholm Sturegatan 11, Sundbyberg Växel +46 8 757 77 00 htt

Re: PHP/avro possibility

2010-09-01 Thread Jeff Hammerbacher
To follow up on this post: the PHP implementation of Avro has been committed to trunk (see https://issues.apache.org/jira/browse/AVRO-627) and will be available in the 1.4.0 release, which is being voted on currently. On Wed, Aug 25, 2010 at 7:39 PM, Jeremy Hanna wrote: > For those interested in

Re: Client developer mailing list

2010-09-01 Thread Guilherme Defreitas
Hi guys, I'm new in cassandra development and I would like to know witch is the best (stable) client in Ruby to use with Cassandra? It will be use in a rails project, but it don't need to be "Active Record" like. Thanks Guilherme On Tue, Aug 31, 2010 at 11:58 PM, Gasol Wu wrote: > great to see

Re: JConsole/SSH tunneling tip

2010-09-01 Thread Edward Capriolo
On Wed, Sep 1, 2010 at 9:03 AM, Matthew Conway wrote: > If you need to tunnel jconsole to a remote cassandra instance, the SSH socks > proxy (ssh -D)is the easiest, least intrusive way.  More details: > > http://simplygenius.com/2010/08/jconsole-via-socks-ssh-tunnel.html > > Matt > > Matts approa

Re: JConsole/SSH tunneling tip

2010-09-01 Thread Jonathan Ellis
Thanks for writing this up! On Wed, Sep 1, 2010 at 6:03 AM, Matthew Conway wrote: > If you need to tunnel jconsole to a remote cassandra instance, the SSH socks > proxy (ssh -D)is the easiest, least intrusive way.  More details: > > http://simplygenius.com/2010/08/jconsole-via-socks-ssh-tunnel.h

Re: TTransportException intermittently in 0.7

2010-09-01 Thread Carl Bruecken
I believe the problem here is with Pelops. The batch_mutate does a flush and the pelops flush is not required. Removing the flush from pelops fixes the issue. By chance is anyone that has seen this error using Pelops? On 8/31/10 6:54 PM, Carl Bruecken wrote: I've made some progress on na

Re: TTransportException intermittently in 0.7

2010-09-01 Thread Andres March
I saw this with pelops and only with batch mutate. Other calls worked fine. On 09/01/2010 08:16 AM, Carl Bruecken wrote: I believe the problem here is with Pelops. The batch_mutate does a flush and the pelops flush is not required. Removing the flush from pelops fixes the issue. By cha

Re: LongString

2010-09-01 Thread Tyler Hobbs
Hey Kevin, It looks to me like they use LongString to sort primarily by the Long, then secondarily by the String portion of a "LongString". I believe all you would need to do to implement this is to add a class to src/java/org/apache/cassandra/db/marshal . I would recommend copying LongType to s

Re: Client developer mailing list

2010-09-01 Thread Ryan King
On Wed, Sep 1, 2010 at 4:40 AM, Guilherme Defreitas wrote: > Hi guys, > I'm new in cassandra development and I would like to know witch is the best > (stable) client in Ruby to use with Cassandra? It will be use in a rails > project, but it don't need to be "Active Record" like. Try http://github

Re: Cassandra on AWS across Regions

2010-09-01 Thread Peter Fales
A few months ago, there was a thread on this list about using Cassandra across multiple EC2 regions. I was interested in doing in doing the same thing, and managed to make it work. To implement this, there are basically two things that need to change. First, in storage-conf.xml, I used the "ext

Re: JConsole/SSH tunneling tip

2010-09-01 Thread Janne Jalkanen
On Sep 1, 2010, at 16:03 , Matthew Conway wrote: If you need to tunnel jconsole to a remote cassandra instance, the SSH socks proxy (ssh -D)is the easiest, least intrusive way. More details: http://simplygenius.com/2010/08/jconsole-via-socks-ssh-tunnel.html Totally awesome. I've lost sev

Re: What is K-table ?

2010-09-01 Thread Andrew Garman
yaw gmail.com> writes: > > Hi all, connecting to a cluster with cassandra-cli and trying a > describe command, > I obtain a "missing K_TABLE" message > Is this a real issue? I would chock this one up to a mix of user error and cryptic CLI message. describe command is describe keyspace

Re: Cassandra on AWS across Regions

2010-09-01 Thread Andres March
Could you explain this point further? Was there an exception? On 09/01/2010 09:26 AM, Peter Fales wrote: that doesn't quite work with the stock Cassandra, as it will try to bind and listen on those addresses and give up because they don't appear to be valid network addresses. -- *Andres Marc

Riptano Cassandra training in Denver

2010-09-01 Thread Jonathan Ellis
Riptano is going to be in Denver next Friday (Sept 10) for a full-day Cassandra training (taught by yours truly). The training is broken into two parts: the first covers application design and modeling in Cassandra, with exercises using the Pycassa library; the second covers operations, troublesho

Re: Cassandra on AWS across Regions

2010-09-01 Thread Benjamin Black
The issue is this: The IP address by which an EC2 instance is known _externally_ is not actually on the instance itself (the address being translated), and the _internal_ address is not accessible across regions. Since you can't bind a specific address that is not on one of your local interfaces,

Re: Cassandra on AWS across Regions

2010-09-01 Thread Peter Fales
I probably should have made it clear that I wasn't proposing this as an official patch (as you point out, it's not general enough for production use). I'm just looking for feedback on the concept (thanks!) and thought it might possibly be useful to other folks trying to do the same thing. On W

Re: Cassandra on AWS across Regions

2010-09-01 Thread Edward Capriolo
On Wed, Sep 1, 2010 at 4:42 PM, Peter Fales wrote: > I probably should have made it clear that I wasn't proposing this as > an official patch (as you point out, it's not general enough for > production use).   I'm just looking for feedback on the concept (thanks!) > and thought it might possibly b

Re: Cassandra on AWS across Regions

2010-09-01 Thread Andres March
Is it not possible to put the external host name in cassandra.yaml and add a host entry in /etc/hosts for that name to resolve to the local interface? On 09/01/2010 01:24 PM, Benjamin Black wrote: The issue is this: The IP address by which an EC2 instance is known _externally_ is not actuall

Re: Cassandra on AWS across Regions

2010-09-01 Thread Benjamin Black
It's not gossiping hostnames, it's gossiping IP addresses. The purpose of Peter's patch is to have the system gossip its external address (so other nodes can connect), but bind its internal address. As Edward notes, it helps with NAT in general, not just EC2. Not perfect, but a great start. b

Re: Cassandra on AWS across Regions

2010-09-01 Thread Jonathan Ellis
+1 On Wed, Sep 1, 2010 at 1:24 PM, Benjamin Black wrote: > The issue is this: > > The IP address by which an EC2 instance is known _externally_ is not > actually on the instance itself (the address being translated), and > the _internal_ address is not accessible across regions.  Since you > can'

Re: Cassandra on AWS across Regions

2010-09-01 Thread Andres March
I thought you might say that. Is there some reason to gossip IP addresses vs hostnames? I thought that layer of indirection could be useful in more than just this use case. I still think it is a good idea to have a separate bind vs gossip config param. On 09/01/2010 03:10 PM, Benjamin Bla

Re: Cassandra on AWS across Regions

2010-09-01 Thread Benjamin Black
On Wed, Sep 1, 2010 at 3:18 PM, Andres March wrote: > I thought you might say that.  Is there some reason to gossip IP addresses > vs hostnames?  I thought that layer of indirection could be useful in more > than just this use case. > The trade-off for that flexibility is that nodes are now depen

Re: Cassandra on AWS across Regions

2010-09-01 Thread Joe Stump
On Sep 1, 2010, at 1:42 PM, Peter Fales wrote: > I probably should have made it clear that I wasn't proposing this as > an official patch (as you point out, it's not general enough for > production use). I'm just looking for feedback on the concept (thanks!) > and thought it might possibly be

Re: Cassandra on AWS across Regions

2010-09-01 Thread Andres March
I didn't have anything specific in mind. I understand all the issues around DNS and not advocating only supporting hostnames (just thought it would be a nice option). I also wouldn't expect name resolution to be done all the time, only when the node is first being started or during initial di

Re: Cassandra on AWS across Regions

2010-09-01 Thread Benjamin Black
On Wed, Sep 1, 2010 at 4:16 PM, Andres March wrote: > I didn't have anything specific in mind. I understand all the issues around > DNS and not advocating only supporting hostnames (just thought it would be a > nice option).  I also wouldn't expect name resolution to be done all the > time, only w

order of mutations in batch_mutate

2010-09-01 Thread Terje Marthinussen
Hi, Just a curiosity. I should probably read some code and write a test to make sure, but not important enough right now for that :) - void batch_mutate(string keyspace, map>> mutation_map, ConsistencyLevel consistency_level) Will performance of a batch_mutate be affected by the order of

Re: order of mutations in batch_mutate

2010-09-01 Thread Jonathan Ellis
no On Wed, Sep 1, 2010 at 7:34 PM, Terje Marthinussen wrote: > Hi, > > Just a curiosity. I should probably read some code and write a test to make > sure, but not important enough right now for that :) > > void batch_mutate(string keyspace, map>> mutation_map, ConsistencyLevel consistency_level)

Re: Riptano Cassandra training in Denver

2010-09-01 Thread vineet daniel
Hi Jonathan Any plans of coming to India in future ? ___ Regards Vineet Daniel +918106217121 ___ Let your email find you On Thu, Sep 2, 2010 at 1:52 AM, Jonathan Ellis wrote: > Riptano is going to be in Denver next F

Re: Riptano Cassandra training in Denver

2010-09-01 Thread samal gorai
It will be gr8. Samal Gorai On Thu, Sep 2, 2010 at 10:46 AM, vineet daniel wrote: > Hi Jonathan > > Any plans of coming to India in future ? > > ___ > Regards > Vineet Daniel > +918106217121 > ___ > > Let your email find you

about insert benchmark

2010-09-01 Thread ChingShen
Hi all, I run a benchmark with my own code and found that the 10 inserts performance is better than others, Why? Can anyone explain it? Thanks. Partitioner = OPP CL = ONE == 1000 records insert one:201 ms insert per:0.201 ms insert thput:4975.12

Re: about insert benchmark

2010-09-01 Thread vineet daniel
Hi Ching You are inserting using php,perl,python,java or ? and is cassandra installed locally or on a network system and is it a single system or you have a cluster of nodes. I know I've asked you many questions but the answers will help immensely to assess the results. Anyways congrats on gettin

Re: about insert benchmark

2010-09-01 Thread ChingShen
Hi Daniel, I have 4 nodes in my cluster, and run a benchmark on node A in Java. P.S. Replication = 3 Shen On Thu, Sep 2, 2010 at 2:49 PM, vineet daniel wrote: > Hi Ching > > You are inserting using php,perl,python,java or ? and is cassandra > installed locally or on a network system and is