简介
Thrift是Facebook的核心技术框架之一,使不同语言开发的系统可以通过该框架进行通信。开发者使用thrift提供的格式来定义数据和服务脚本。thrift可以通过定义的脚本自动生成不同语言的代码以支持不同语言之间的通信。thrift支持多种数据通信协议,比如xml,jason,binnary等等。
Thrift并不是唯一的跨语言通信框架,像google的protocol buffers也是与之类似的框架。关于两者之前的比较可以去股沟一下。
Trift安装
1.安装thrift所依赖的linux包autoconfautomakesysconftool boost boost-devellibtoolbyacc flex bison这一步请根据相关系统进行按装,因为现在用的是red hat5服务器版,所以我直接从光盘里找rpm包直接安装通过rpm -ivh包名.rpm进行安装。
2.下载thrift的代码:doc.guandang.net
3.解压代码包tar -zxvf thrift-0.2.0-incubating.tar.gz
4.拷贝thrift到安装目录cp -r thrift0.2.0 /usr/local/
5.cd /usr/local/thrift0.2.0 运行该目录下的./bootstrap.sh shell脚本。这一步你可能遇到这两种错误
错误一
[root@localhost thrift]# ./bootstrap.sh --enable-m4_pattern_allow libtoolize: You should add the contents of `./aclocal/libtool.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `./aclocal/ltoptions.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `./aclocal/ltsugar.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `./aclocal/ltversion.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `./aclocal/lt~obsolete.m4' to `aclocal.m4'.
configure.ac:50: error: possibly undefined macro: AC_PROG_MKDIR_P If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.ac:144: error: possibly undefined macro: AC_TYPE_INT16_T configure.ac:145: error: possibly undefined macro: AC_TYPE_INT32_T configure.ac:146: error: possibly undefined macro: AC_TYPE_INT64_T configure.ac:147: error: possibly undefined macro: AC_TYPE_INT8_T configure.ac:151: error: possibly undefined macro: AC_TYPE_SSIZE_T
Thrift的安装与错误解决 3页 1下载券 thrift 入门介绍 7页 2下载券 thrift 开发...Thrift(一) thrift 是一个软件框架,用来进行可扩展且跨语言的服务的开发。它...
thrift通信的安装步骤以及使用方法_计算机软件及应用_IT/计算机_专业资料。简单介绍了通信的方式今日推荐 88份文档 2014全国高考状元联手分享状元笔记 ...
thrift,oneway的问题。今天同事试验oneway的时候,发现client发送的消息数目和...Thrift自动生成代码处理... 15页 免费 thrift基本用法总结 2页 1下载券 thrift...
hadoop安装 hadoop+thrift+hive_计算机软件及应用_IT/计算机_专业资料。hadoop安装文档Hadoop + hive + thrift 安装文档一、主服务器设置 1.创建用户 #useraddhadoop...
thrift在ubuntu11.04上的安装测试_计算机软件及应用_IT/计算机_专业资料。安装 ...Thrift下java服务器与客... 8页 1下载券 Thrift的安装与错误解决 3页 1下载...
thrift 是为 了解决 facebook 系统中各系统间大...安装/配置 (清单 2) 1.下载 thrift 源文件 http...问题:编码、解析完全需要自己做 ,复杂的数据结构会...
对象中都会包含一个实现了此接口的类对象(Process), 这个类就是处理 RPC 请求...在此之前,必须安装好 Thrift,安装过程就不累述了,可以参考 thrift 中的 readme...
p=thrift.git;a=summary [ 点击 shapshot 下载] 编译前使安装以下的软件包 ...解决:will need to install openssl-devel 2) autoconf update 问题,#号是正常...
问题解决型:基本方法为:提出问题→分析问题→解决问题 问题解决型作文模板 1. ...It’s time that we cultivate the habit of thrift in every possible way....
安装 thrift 环境 # https://dist.apache.org/...我启动时出现下面的错误: ./scribed: error while ...No such file or directory 解决办法是 find 这个库...
热门文档