Re: schema example

2009-05-19 Thread Evan Weaver
messages with get_slice. > > > > Anyone got another one for pedagogical purposes? > > -Jonathan > -- Evan Weaver

Re: schema example

2009-05-19 Thread Evan Weaver
ect/ (follow the link on the > right). The presentation talks about the schema used by FB for email search. > > Jun > IBM Almaden Research Center > K55/B1, 650 Harry Road, San Jose, CA 95120-6099 > > jun...@almaden.ibm.com > > Evan Weaver > > > Evan Weaver >

Re: schema example

2009-07-03 Thread Evan Weaver
r + body (e.g. as a json dict).  Again we use the slice > call to get the comments in order.  (We will have to manually reverse > what slice gives us since time sort is always reverse chronological > atm, but the overhead of doing this in memory will be negligible.) > > Does this hel

Re: schema example

2009-07-03 Thread Evan Weaver
That requires you to know the timestamp, so you can't just ask for the most recent one. Evan On Fri, Jul 3, 2009 at 6:02 PM, Jonathan Ellis wrote: > get_columns_since > > On Fri, Jul 3, 2009 at 7:21 PM, Evan Weaver wrote: >> This helps a lot. >> >> However,

Re: schema example

2009-07-03 Thread Evan Weaver
/CASSANDRA-217 http://issues.apache.org/jira/browse/CASSANDRA-263 Evan On Fri, Jul 3, 2009 at 6:06 PM, Evan Weaver wrote: > That requires you to know the timestamp, so you can't just ask for the > most recent one. > > Evan > > On Fri, Jul 3, 2009 at 6:02 PM, Jonathan Ellis wro

Re: schema example

2009-07-03 Thread Evan Weaver
| next You can render: prev | cur | next | cur + 2 | cur + 3 | cur + 4 | cur + 5 This lets you smoothly trade off navigability for performance. Evan On Fri, Jul 3, 2009 at 6:53 PM, Evan Weaver wrote: > (From talking on IRC): > > I think this boils down to the offset/limit vs. token/lim

Re: eventual consistency and what that means in real world terms

2009-07-03 Thread Evan Weaver
al time frames are we talking about to write data to 3 nodes? > So basically what we want is high availability for 99.99% of queries, but > high consistency for the remainder, across the same data.  Is this currently > possible? > Chris -- Evan Weaver

[Announce] CassandraClient 0.1 for Ruby released

2009-07-04 Thread Evan Weaver
I am pleased to release: cassandra_client 0.1 A Ruby client for the Cassandra distributed database. http://blog.evanweaver.com/files/doc/fauna/cassandra_client/ http://github.com/fauna/cassandra_client/ Evan -- Evan Weaver

Re: python client?

2009-07-06 Thread Evan Weaver
ndra/ThriftInterface > > -Anthony > > On Mon, Jul 06, 2009 at 09:44:49AM -0700, Kevin Castiglione wrote: >> is there a python client available? where do i access it from? >> thanks! > > -- > > A

Up and Running with Cassandra

2009-07-06 Thread Evan Weaver
In case you missed it, a big introductory post: http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/ Evan -- Evan Weaver

Re: Up and Running with Cassandra

2009-07-07 Thread Evan Weaver
n 791696. will the on-disk storage format change > affect this version? > > On Mon, Jul 6, 2009 at 11:18 PM, Evan Weaver wrote: >> >> In case you missed it, a big introductory post: >> >> >> http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/ >> >> Evan >> >> -- >> Evan Weaver > > -- Evan Weaver

Re: one server or more servers?

2009-07-15 Thread Evan Weaver
you can more usefully use a conventional database with >>>> > >> replication or sharding. >>>> > >> >>>> > >> The reason you might want to use Cassandra is to scale writes a lot, >>>> > >> to >>>> > >> levels you couldn't reach with more "conventional" databases. >>>> > >> >>>> > >> In all likelihood, an application would use Cassandra to store >>>> > >> high-volume >>>> > >> high-write data alongside a more conventional database to store >>>> > >> smaller, >>>> > >> less frequently changing stuff. >>>> > >> >>>> > >> It appears to me that Cassandra 0.3 is only really useful if running >>>> > >> on a >>>> > >> homogenous cluster of dedicated servers with reasonable amounts of >>>> > >> memory / >>>> > >> storage (But not necessarily high spec servers of CPU, IO speed or >>>> > >> internal >>>> > >> redundancy). >>>> > >> >>>> > >> Once the load balancing is implemented in 0.5 (according to current >>>> > >> plans) >>>> > >> it will become more useful for heterogenous environments. >>>> > >> >>>> > >> Mark >>>> > > >>>> > > >>>> > > >>>> > > -- >>>> > > Bidegg worlds best auction site >>>> > > http://bidegg.com >>>> > > >>>> >>>> -- >>>> >>>> Anthony Molinaro                           >>> >>> >>> >>> -- >>> Bidegg worlds best auction site >>> http://bidegg.com >> >> >> >> -- >> Bidegg worlds best auction site >> http://bidegg.com >> > -- Evan Weaver

Re: one server or more servers?

2009-07-15 Thread Evan Weaver
Try with only one seed. Not every host has to be in the seeds. Evan On Wed, Jul 15, 2009 at 8:52 PM, wrote: > in Seeds > can we specify domain name instead of ip address > right now seeds is specifying ip address > > On Wed, Jul 15, 2009 at 4:49 PM, Evan Weaver wrote: >> &

Re: one server or more servers?

2009-07-15 Thread Evan Weaver
Oh, yeah, definitely set ListenAddress to blank. 0.0.0.0 doesn't mean "all interfaces" for some reason I forget. Evan On Wed, Jul 15, 2009 at 9:23 PM, Evan Weaver wrote: > Try with only one seed. Not every host has to be in the seeds. > > Evan > > On Wed, Jul 15,

Cassandra hackfest! Wednesday, July 22nd 6pm @ Twitter, San Francisco

2009-07-16 Thread Evan Weaver
, and keep IRC running on the big screen, for those who are not local. RSVP privately to me at ewea...@twitter.com. We have 25 community seats available. Beer will be provided. Thanks! See you there. Evan -- Evan Weaver

Re: Cassandra hackfest! Wednesday, July 22nd 6pm @ Twitter, San Francisco

2009-07-16 Thread Evan Weaver
I'll announce broadcast details for the presentation next week sometime. The IRC channel will be #cassandra on Freenode, as always. Evan On Thu, Jul 16, 2009 at 4:12 PM, Evan Weaver wrote: > Hi all! > > Next Wednesday, July 22nd, Twitter will host a Cassandra database > hack

Re: a talk on building an email app on Cassandra

2009-07-20 Thread Evan Weaver
t;> Jun >> IBM Almaden Research Center >> K55/B1, 650 Harry Road, San Jose, CA 95120-6099 >> >> jun...@almaden.ibm.com >> > -- Evan Weaver

Re: Cassandra hackfest! Wednesday, July 22nd 6pm @ Twitter, San Francisco

2009-07-21 Thread Evan Weaver
Reminder; this is tomorrow! We still have space for 5 people or so. Evan On Thu, Jul 16, 2009 at 4:12 PM, Evan Weaver wrote: > Hi all! > > Next Wednesday, July 22nd, Twitter will host a Cassandra database > hackfest. It will run from 6pm to around 10pm. Twitter is located at > 539

Re: Cassandra hackfest! Wednesday, July 22nd 6pm @ Twitter, San Francisco

2009-07-22 Thread Evan Weaver
The presentation will be broadcast on http://justin.tv/cassandradb at 6:30pm PDT (world time: http://bit.ly/KaITu). As usual, the Cassandra IRC channel is #cassandra on Freenode. Evan On Thu, Jul 16, 2009 at 6:14 PM, Evan Weaver wrote: > I'll announce broadcast details for the presentat

Re: MVCC

2009-08-03 Thread Evan Weaver
gt;> On Mon, Aug 3, 2009 at 10:49 AM, Jun Rao wrote: >> > Ivan, >> > >> > The original cassandra keeps multiple versions of the column data. >> >> No, it didn't.  (It had versioning-related bugs but multiple versions >> a la Bigtable was never part of the design.) >> >> -Jonathan > > -- Evan Weaver

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Evan Weaver
7;t use string ("0") as a SCALAR ref while "strict refs" in use >> at /usr/lib/perl5/site_perl/5.8.8/Thrift/BinaryProtocol.pm line 376.' > > If it's objecting to the 0 in reversed=>0, it sounds like a perl > specific problem -- why would it be turning that into a string? > > -Jonathan > -- Evan Weaver

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Evan Weaver
t; > It seems to me that it isn't connected to reversed. I changed to 1 and > nothing was changed. > > -- > Teodor Sigaev                                   E-mail: teo...@sigaev.ru >                                                   WWW: http://www.sigaev.ru/ > -- Evan Weaver

[ANNOUNCE] Cassandra.gem 0.5

2009-08-20 Thread Evan Weaver
changes, for usability - complete documentation This is the first version I would be comfortable using in production, which is saying something. To install, run: sudo gem install cassandra Documentation is here: http://blog.evanweaver.com/files/doc/fauna/cassandra/ Evan -- Evan Weaver

Re: quorum read timeout

2009-08-20 Thread Evan Weaver
.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.ru

Re: Newbe´s question

2009-08-24 Thread Evan Weaver
> connection.add_pool('UserData', ['localhost:9160']) >>>>>> >>>>>> >>>>>> # Subclass ColumnFamily to create an object of the correct type. >>>>>> class User(columnfamily.ColumnFamily): >>>>>>    """A class representing a user in Cassandra.""" >>>>>> >>>>>>    # _key is the key template. It's values are given to >>>>>>    # PrimaryKey.__init__ as keyword arguments any time a PK is >>>>>>    # instantiated for this object. >>>>>>    _key = {'table': 'UserData',        # The table to store in >>>>>>            'family': 'Users'}          # The ColumnFamily name to store >>>>>> on >>>>>> >>>>>>    # Anything in here _must_ be set before the object is saved >>>>>>    _required = ('username',) >>>>>> >>>>>> >>>>>> # Create an empty object >>>>>> u = User() >>>>>> >>>>>> # A PrimaryKey is generated for you: >>>>>> print u.pk >>>>>> # -> {'table': 'UserData', 'superkey': None, >>>>>> #     'key': 'da6c8e19174f40cfa6d0b65a08eef62f', >>>>>> #     'family': 'Users', 'supercol': None} >>>>>> >>>>>> data = {'username': 'ieure', 'email': 'i...@digg.com'} >>>>>> >>>>>> # The object is a dict. All these are equivalent. >>>>>> u.update(data) >>>>>> u.update(data.items()) >>>>>> u.update(**data) >>>>>> for k in data: >>>>>>    u[k] = data[k] >>>>>> >>>>>> # Arguments to __init__ are passed to update() >>>>>> u = User(data) >>>>>> print u            # -> {'username': 'ieure', 'email': 'i...@digg.com'} >>>>>> >>>>>> # You can see if it's been modified. >>>>>> print u.is_modified()           # -> True >>>>>> >>>>>> # Save to Cassandra >>>>>> u.save()           # -> {'username': 'ieure', 'email': 'i...@digg.com'} >>>>>> >>>>>> print u.is_modified()           # -> False >>>>>> >>>>>> # Load it in a new instance. >>>>>> u_ = User().load(u.pk.key) >>>>>> print u_           # -> {'username': 'ieure', 'email': 'i...@digg.com'} >>>>>> >>>>>> print u.is_modified()           # -> False >>>>>> del u['username'] >>>>>> print u.valid()                 # -> False >>>>>> print u.missing()               # -> ('username',) >>>>>> try: >>>>>>    u.save()        # -> ('Missing required field(s):', ('username',)) >>>>>> except Exception, e: >>>>>>    print e >>>>>> >>>>>> # Discard modifications >>>>>> u.revert() >>>>>> print u.is_modified()           # -> False >>>>>> print u.valid()                 # -> True >>>>>> >>>>> >>>> >>> >> > -- Evan Weaver

Re: Newbe´s question

2009-08-26 Thread Evan Weaver
t;> I'm doing some heavy refactoring all this week, to bring it up to >>>> Cassandra trunk and simplify/genericize it wherever possible. I should >>>> have >>>> something to show in a day or two. >>>> >>>> Feel free to contact me if you have questions or requests. >>>> >>>>  - Ian >>>> >>>> >>>> >>>> -- >>>> Salvador Fuentes Jr. >>>> 323-540-4SAL >>> >>> -- >>> Ian Holsman >>> i...@holsman.net >>> >>> >>> >>> > > -- > Ian Holsman > i...@holsman.net > > > > -- Evan Weaver

Re: Experiencing Errors

2009-11-04 Thread Evan Weaver
ce and 'ant > test build' (of course that's assuming your Java environment is > setup). > > Hope that helps, > > -- > # Curt Micol > -- Evan Weaver