色胃康胶囊 发表于 2017-4-21 07:31:34

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
  $ thrift -version

Thrift version 0.8.0
  
  生成访问访问hbase的python
  thrift -r -gen py **/HBase.thrift
  






  

  

  

  
页: [1]
查看完整版本: thrift python