Newbe´s question

2009-08-24 Thread Bruno Couto
Hi Guys, my name is Bruno and I'm from Brazil, first, sorry for my bad english. I'm in my first steps with cassandra, and I´m trying to use Lazyboy (python wrapper). But when I run the layzyboy columnfamily.py example, I get the following error messages. Someone with more experience could help me?

Re: Newbe´s question

2009-08-24 Thread Jonathan Ellis
There's two things going on here, I think. One is that you're passing a null where there shouldn't be one. This is a thrift bug and will be addressed in the next beta. The other is that IIRC lazyboy needs to be updated to work with the latest 0.4 api. -Jonathan On Mon, Aug 24, 2009 at 9:09 AM,

Re: Newbe´s question

2009-08-24 Thread Bruno Couto
Jonathan, First, thanks for answering so fast. I´m using version 0.3-final of Cassandra, then I believe the api version 0.4 is not the problem, am I correct? I'll look for the null problem. Bruno Couto On Mon, Aug 24, 2009 at 11:50 AM, Jonathan Ellis wrote: > There's two things going on here,

Re: Newbe´s question

2009-08-24 Thread Jonathan Ellis
lazyboy works vs an earlier version of trunk, so it's already incompatible with 0.3, but not yet compatible w/ latest 0.4 :) On Mon, Aug 24, 2009 at 12:28 PM, Bruno Couto wrote: > Jonathan, > > > First, thanks for answering so fast. > I´m using version 0.3-final of Cassandra, then I believe the ap

Re: Newbe´s question

2009-08-24 Thread Bruno Couto
Thanks for helpping me Jonathan! Well, now I know that I can´t use the Lazyboy, then I will try my first steps using the Cassandra trunk version and thrift api whitout a wrapper. On Mon, Aug 24, 2009 at 2:41 PM, Jonathan Ellis wrote: > lazyboy works vs an earlier version of trunk, so it's alread

Re: Newbe´s question

2009-08-24 Thread Jonathan Ellis
That's probably the best option at the moment. Once you're familiar with the thrift API I'm sure the lazyboy devs would welcome updates too. -Jonathan On Mon, Aug 24, 2009 at 1:54 PM, Bruno Couto wrote: > Thanks for helpping me Jonathan! > > Well, now I know that I can´t use the Lazyboy, then I

Re: Newbe´s question

2009-08-24 Thread Evan Weaver
The Ruby client works fine. ;-) Evan On Mon, Aug 24, 2009 at 12:00 PM, Jonathan Ellis wrote: > That's probably the best option at the moment.  Once you're familiar > with the thrift API I'm sure the lazyboy devs would welcome updates > too. > > -Jonathan > > On Mon, Aug 24, 2009 at 1:54 PM, Bruno

Re: Newbe´s question

2009-08-24 Thread Drew Schleck
I've been working on a Lazyboy 0.4 update at http://github.com/dschleck/lazyboy/ . Right now it's at the point where it works for me and what I'm doing but there's probably a few bugs to be caught. As an example, yesterday I noticed it wasn't possible to delete items out of supercolumns so I fixed

Re: Newbe´s question

2009-08-24 Thread Chris Goffinet
Please send pull requests to Digg, our guys can merge them in. --- Chris Goffinet goffi...@digg.com On Aug 24, 2009, at 3:15 PM, Drew Schleck wrote: I've been working on a Lazyboy 0.4 update at http://github.com/dschleck/lazyboy/ . Right now it's at the point where it works for me and what

Re: Newbe´s question

2009-08-24 Thread Bruno Couto
Drew, As I said earlier, I am in my first steps with Cassandra, but I will use your branch and notify my experiences. Thanks, Bruno Couto. On Mon, Aug 24, 2009 at 7:15 PM, Drew Schleck wrote: > I've been working on a Lazyboy 0.4 update at > http://github.com/dschleck/lazyboy/ . Right now it's a

Re: Newbe´s question

2009-08-24 Thread mobiledreamers
hey Drew Can you show an example on how to use your lazyboy with a simple column family or super columny familythat would be really great thanks a lot On Mon, Aug 24, 2009 at 3:15 PM, Drew Schleck wrote: > I've been working on a Lazyboy 0.4 update at > http://github.com/dschleck/lazyboy/ . Right

Re: Newbe´s question

2009-08-24 Thread Drew Schleck
It's not my Lazyboy, give the Digg guys credit for doing almost all of the work. I found out most of this by just looking at the provided unit tests, even if you can't run them they are helpful. Columns: class User(columnfamily.ColumnFamily): _key = { 'table': 'keyspace', 'family'

Re: Newbe´s question

2009-08-24 Thread Drew Schleck
Oops, class Items should be: class Items(supercolumn.SuperColumn): _key = { 'table': 'keyspace', 'family': 'Items' } name = "Items" family = Item I knew I should proofread... On Mon, Aug 24, 2009 at 23:07, Drew Schleck wrote: > It's not my Lazyboy, give the Digg guys cre

Re: Newbe´s question

2009-08-25 Thread Drew Schleck
For anyone using my branch of Lazyboy, Ian Eure pulled my work, improved it, and more. You ought to switch back to his version. Drew

Re: Newbe´s question

2009-08-26 Thread Ian Eure
On Aug 25, 2009, at 2:46 PM, Drew Schleck wrote: For anyone using my branch of Lazyboy, Ian Eure pulled my work, improved it, and more. You ought to switch back to his version. I'm doing some heavy refactoring all this week, to bring it up to Cassandra trunk and simplify/genericize it whereve

Re: Newbe´s question

2009-08-26 Thread Sal Fuentes
Just would like to say great job so far. On Wed, Aug 26, 2009 at 4:01 PM, Ian Eure wrote: > On Aug 25, 2009, at 2:46 PM, Drew Schleck wrote: > > For anyone using my branch of Lazyboy, Ian Eure pulled my work, >> improved it, and more. You ought to switch back to his version. >> >> I'm doing so

Re: Newbe´s question

2009-08-26 Thread Ian Holsman
would it be worthwhile to start including these clients in the core codebase? in some kind of 'client' or 'contrib' directory? maybe even mentioning the 'popular' clients that people use in the readme (with links to them) would be good. On Aug 27, 2009, at 9:18 AM, Sal Fuentes wrote: Just

Re: Newbe´s question

2009-08-26 Thread Jonathan Ellis
I thought about that, but I really don't want Cassandra committers to have to be in the business of updating them all when we make changes, and having them in the repo creates that expectation even in contrib. On Wed, Aug 26, 2009 at 6:57 PM, Ian Holsman wrote: > would it be worthwhile to start in

Re: Newbe´s question

2009-08-26 Thread Eric Evans
On Thu, 2009-08-27 at 09:57 +1000, Ian Holsman wrote: > would it be worthwhile to start including these clients in the core > codebase? in some kind of 'client' or 'contrib' directory? IMO, it would be better for the clients and those working on them to continue managing them as separate project

Re: Newbe´s question

2009-08-26 Thread Ian Holsman
isn't there a way to use svn:external or svn:link to pull them in from their own repos? (not sure how legal it would be). On Aug 27, 2009, at 10:03 AM, Jonathan Ellis wrote: I thought about that, but I really don't want Cassandra committers to have to be in the business of updating them all wh

Re: Newbe´s question

2009-08-26 Thread Evan Weaver
"Clients" section in the README.txt seems best to me. Evan On Wed, Aug 26, 2009 at 5:09 PM, Ian Holsman wrote: > isn't there a way to use svn:external or svn:link to pull them in from their > own repos? > (not sure how legal it would be). > On Aug 27, 2009, at 10:03 AM, Jonathan Ellis wrote: > >>

Re: Newbe´s question

2009-08-26 Thread Jonathan Ellis
the problem is README changes far too infrequently from the pov of someone who just uses official releases. we have a list here: http://wiki.apache.org/cassandra/ClientExamples which I have deliberately left incomplete (only projects with commits in the last month or so, since nothing else has a p

Re: Newbe´s question

2009-08-26 Thread Jonathan Ellis
Off the top of my head, I can't think of any that actually use svn so it's probably a moot point anyway. Subversion has practically zero mindshare now in the cutting edge crowd (which most of cassandra's users come from, unsurprisingly :). -Jonathan On Wed, Aug 26, 2009 at 7:09 PM, Ian Holsman w

Re: Newbe´s question

2009-08-26 Thread Chris Goffinet
Don't know what you're talking about, I am still rolling with CVS. -Chris On Aug 26, 2009, at 5:31 PM, Jonathan Ellis wrote: Off the top of my head, I can't think of any that actually use svn so it's probably a moot point anyway. Subversion has practically zero mindshare now in the cutting ed

Re: Newbe´s question

2009-08-26 Thread mobiledreamers
any ideas on how 2 fix this? Traceback (most recent call last): File "/tmp/a.py", line 3, in print cassandra.ttypes.Column().__hash__() AttributeError: Column instance has no attribute '__hash__' * #!/usr/bin/python import cassandra.ttypes print cassandra.ttypes.Column().__hash__() * On We

Re: Newbe´s question

2009-08-26 Thread Eric Evans
On Wed, 2009-08-26 at 17:33 -0700, Chris Goffinet wrote: > Don't know what you're talking about, I am still rolling with CVS. Oh, what a twisted sense of humor you have Chris. -- Eric Evans eev...@rackspace.com

Re: Newbe´s question

2009-08-26 Thread ian
Don't call __hash__, there is no such method. On Aug 26, 2009, at 5:39 PM, mobiledream...@gmail.com wrote: any ideas on how 2 fix this? Traceback (most recent call last): File "/tmp/a.py", line 3, in print cassandra.ttypes.Column().__hash__() AttributeError: Column instance has no attri

Re: Newbe?s question

2009-08-26 Thread Anthony Molinaro
Now now, we use subversion at OpenX and we are probably the only people who use Cassandra 0.3.0 in production, can't get more cutting edge than that :) -Anthony On Wed, Aug 26, 2009 at 07:31:48PM -0500, Jonathan Ellis wrote: > Off the top of my head, I can't think of any that actually use svn so

Re: Newbe´s question

2009-08-27 Thread mobiledreamers
just running your example python /tmp/columnfamily.py {'table': 'Keyspace1', 'superkey': None, 'key': 'f8b29cc4193b42bc8a188615855cfa4e', 'family': 'Standard1', 'supercol': None} {'username': 'ieure', 'email': 'i...@digg.com'} True Traceback (most recent call last): File "/tmp/columnfamily.py",