cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Verde <miguelitov...@gmail.com>
Subject Re: server needs thrift to run also?
Date Mon, 12 Jul 2010 23:02:54 GMT
I'll take a guess.

S Ahmed, the Thrift compiler takes a .thrift file and can generate client
and server code for it in your language of choice.  This code depends on the
Thrift runtime library in that language.

For instance, the Thrift Java runtime library is bundled with Cassandra as a
jar.  When developers want to change the interface, they change the .thrift
file and generate server code from it.  This code is also then bundled with
Cassandra, and depends on the jar.

Twissandra includes pycassa, which has already generated the client code
from the .thrift file for you.  You don't need to generate any code.  You
do, however, need to install the Thrift Python runtime library.
On Mon, Jul 12, 2010 at 5:51 PM, Benjamin Black <b@b3k.us> wrote:

> You were just told it is packaged with what it needs.  The API is not
> changed from 0.6.1 to 0.6.3.  Why do you think you need to generate
> client code?
>
> On Mon, Jul 12, 2010 at 2:16 PM, S Ahmed <sahmed1020@gmail.com> wrote:
> > Ok I guess I have to read up on exactly what is going on here.
> > I figured I could download twissandra, fire up cassandra and run the app!
> > I thought all you needed was the python driver which comes with
> twissandra.
> > Let me read more about Thrift and generating client code etc.
> > thanks!
> >
> > On Mon, Jul 12, 2010 at 5:04 PM, Michael Pearson <mjpearson@gmail.com>
> > wrote:
> >>
> >> Twissandra is packaged with pycassa + correct generated thrift
> >> transports under /deps already, so really just need the thrift binary
> >> to build from a cassandra.thrift API newer than what's currently
> >> supported by the bundled pycassa.
> >>
> >> -michael
> >>
> >> On Mon, Jul 12, 2010 at 1:55 PM, Stu Hood <stu.hood@rackspace.com>
> wrote:
> >> > You'll need Thrift installed to generate the _client_ code: the server
> >> > code is embedded within Cassandra.
> >> >
> >> > -----Original Message-----
> >> > From: "S Ahmed" <sahmed1020@gmail.com>
> >> > Sent: Monday, July 12, 2010 3:49pm
> >> > To: user@cassandra.apache.org
> >> > Subject: Re: server needs thrift to run also?
> >> >
> >> > confused, why does the installation guide say to build and make it
> then?
> >> > http://github.com/ericflo/twissandra
> >> >
> >> > <http://github.com/ericflo/twissandra>twissandar is for 0.6.1 is
that
> >> > why?
> >> > i.e. it was embedded in a later version?
> >> >
> >> >
> >> > On Mon, Jul 12, 2010 at 4:46 PM, Stu Hood <stu.hood@rackspace.com>
> >> > wrote:
> >> >
> >> >> The Thrift server is embedded in Cassandra, and starts by default.
> Look
> >> >> for
> >> >> references to Thrift on:
> >> >> http://wiki.apache.org/cassandra/GettingStarted
> >> >>
> >> >> Thanks,
> >> >> Stu
> >> >>
> >> >> -----Original Message-----
> >> >> From: "S Ahmed" <sahmed1020@gmail.com>
> >> >> Sent: Monday, July 12, 2010 3:43pm
> >> >> To: user@cassandra.apache.org
> >> >> Subject: server needs thrift to run also?
> >> >>
> >> >> I'm trying to follow along the twissandra installation instructions.
> >> >>
> >> >> So to get it running I have to install Thrift.
> >> >>
> >> >> So thrift runs as another service?  So communication is done via
> >> >> thrift,
> >> >> which then communicates to Cassandra on another port?
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >
> >
>

Mime
View raw message