download thrift src file http://www.apache.org/dyn/closer.cgi?path=/thrift/0.8.0/thrift-0.8.0.tar.gz
或者
svn co http://svn.apache.org/repos/asf/thrift/trunk/ thrift
安装依赖程序
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
tar zvxf thrift-0.8.0.tar.gz(svn check out 出来的现在最新版是0.9.0-dev)
cd thrift-0.8.0
#:sh bootstrap.sh (如果出现缺少libtoolize 安装之:yum install libtool)
稍息片刻.....
生成一系列config
执行 #:./configure
make install
....n 久
至此,编译thrift就齐活儿了
check it with thrift -version
[mox@pt bin]$ thrift -version
Thrift version 0.8.0
生成访问访问hbase的python
thrift -r -gen py **/HBase.thrift
注:如果在make install 后面出现maven的问题,不会影响生成python程序
本文提供了一份详细的Thrift 0.8.0版本的编译与安装指南,包括从源文件下载到最终验证版本的全过程,并介绍了如何生成用于访问HBase的Python客户端。
1010

被折叠的 条评论
为什么被折叠?



