Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "InstallThrift" page has been changed by Joe Stein:
http://wiki.apache.org/cassandra/InstallThrift?action=diff&rev1=13&rev2=14

  '''NOTE:''' If you arrived here for the purpose of writing your first 
application, please consider using a [[ClientOptions|higher-level client]] 
instead of thrift directly.
  
- [[http://incubator.apache.org/thrift|Thrift]] historically did not have 
tagged releases and Cassandra used trunk revisions of it. As of Cassandra 0.7, 
Thrift 0.5 is used. For Cassandra 0.6, you have to use the matching version of 
Thrift. Under such circumstances, installing thrift is a bit of a bitch.  We 
are sorry about that, but we don't know of a better way to support a vast 
number of clients mostly automagically.
+ [[http://thrift.apache.org/|Thrift]] historically did not have tagged 
releases and Cassandra used trunk revisions of it however as of Cassandra 0.8, 
Thrift 0.6 is used and available for 
[[http://thrift.apache.org/download/|download]].  With Cassandra 0.7, Thrift 
0.5 is used. For Cassandra 0.6, you have to use the matching version of Thrift. 
Under such circumstances, installing thrift is a bit of a bitch.  We are sorry 
about that, but we don't know of a better way to support a vast number of 
clients mostly automagically.
  
+ If installing Thrift 0.6 on a Mac for use with Cassandra 0.8 and you get an 
error building 'thrift.protocol.fastbinary' extension during `make` then you 
might need to work around https://issues.apache.org/jira/browse/THRIFT-1143 by 
going to thrift-0.6.1/lib/py and run `sudo ARCHFLAGS="-arch x86_64" python 
setup.py install`
+ 
- Important note: you need to install the svn revision of thrift that matches 
the revision that your version of Cassandra uses (if not using 0.7 with Thrift 
0.5). This can be found in the <Cassandra Home>/lib directory - e.g. 
`libthrift-917130.jar` means that version of Cassandra uses svn revision 917130 
of thrift.
+ Important note: If using Cassandra 0.6 then you need to install the svn 
revision of thrift that matches the revision that your version of Cassandra 
uses (if not using 0.8 with Thrift 0.6 nor 0.7 with Thrift 0.5). This can be 
found in the <Cassandra Home>/lib directory - e.g. `libthrift-917130.jar` means 
that version of Cassandra uses svn revision 917130 of thrift.
  
   1. `aptitude install libboost-dev python-dev autoconf automake pkg-config 
make libtool flex bison build-essential` (or the equivalent on your system) 
(assumes you are interested in building for python; omit python-dev otherwise)
   1. Grab the thrift source with the revision that your version of Cassandra 
uses: e.g. `svn co -r 917130 http://svn.apache.org/repos/asf/thrift/trunk 
thrift`

Reply via email to