thrift python

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程序



你可能感兴趣的:(python,File,hbase,download)