Version 7 (modified by waue, 13 years ago) (diff) |
---|
cassandra 1.0 + Thrift 0.7
- cassandra 1.0 + Thrift 0.7 為 2011 / 11/ 08 可取得的最新版
- 官方文件說 cassandra 0.8 搭配 Thrift 0.6 , cassandra 0.7 <-> Thrift 0.5 .. ,沒註明 cassandra 1.0 用哪個版本http://wiki.apache.org/cassandra/InstallThrift
環境準備
sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
專案 安裝目錄 cassandra 1.0 /opt/cassandra-1.0.1/ thrift 0.7 /opt/cassandra-1.0.1/thrift-0.7.0/
備註:
- 並非 thrift 必定得放在 cassandra 的目錄底下,而是因為版本有對應關係,因此這樣放比較不會搞錯
Cassandra 1.0 安裝
Thrift 安裝
cd /opt/cassandra-1.0.1/thrift-0.7.0 sudo bash ./contrib/fb303/bootstrap.sh sudo ./configure sudo make sudo make install
接著 lib/ 下就有各式各樣語言的資料夾,找到 lib/php/README
#1) Copy all of thrift/lib/php/src into your PHP codebase #2) Set $GLOBALS['THRIFT_ROOT'] to the path you installed Thrift #3) include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
$GLOBALS['THRIFT_ROOT']="/opt/cassandra-1.0.1/thrift-0.7.0/lib/php/src"
Attachments (1)
- Cassandra-PHP-Client-Library-exp.php (8.9 KB) - added by waue 13 years ago.
Download all attachments as: .zip