thrift 安装及示例

来源:互联网 发布:java获取cookie的方法 编辑:程序博客网 时间:2024/05/22 14:36

thrift是由facebook开发的轻量级跨语言的服务框架,现在已经移交到apache基金会下。和他类似的是google出的protocol buffer和ice。 thrift的一大优势就是支持的语言很丰富,它使用自己的IDL语言来描述服务接口和数据交换的格式。

官方网站:http://incubator.apache.org/thrift/

官方安装文档:http://thrift.apache.org/docs/install/centos  http://wiki.apache.org/thrift/ThriftRequirements

thrift示例:https://thrift.apache.org/tutorial/

1. 安装过程

安装依赖包安装下面链接中所示:

 http://thrift.apache.org/docs/install/centos

上面链接中给的地址

git clone https://git-wip-us.apache.org/repos/asf/thrift.git

按照操作步骤出现错误,因此从网上找的其他教程进行的

下载Thrift的软件包,并解压缩:
wget http://apache.fayea.com/thrift/0.9.2/thrift-0.9.2.tar.gz
tar zxvf thrift-0.9.2.tar.gz
cd thrift-0.9.2
./configure
make && make install
安装完毕以后
thrift -version
Thrift version 0.9.2
可以查看版本表示安装完成

2. redhat thrift  python demo

参考: http://blog.csdn.net/xiaojun1288/article/details/9223487

PHP通过Thrift操作Hbase

http://blog.csdn.net/hguisu/article/details/7298456

http://www.cnblogs.com/scotoma/archive/2013/05/16/3081236.html

0 0