文章目录

scribe 简介:

facebook 出的分布式日志系统

官方:https://github.com/facebook/scribe

原理图:下载源码包后,可以在examples/README里看到

在线地址: https://github.com/facebook/scribe/blob/master/examples/README

先看下它的依赖吧。挺麻烦的。所以制作 RPM包安装与批量部署很有必要。

创建自己的YUM源详见:http://bubbyroom.com/2011/01/create-yum-repo/

[libevent] Event Notification library

[boost] Boost C++ library (version 1.36 or later) http://www.boost.org/users/download/

[thrift] Thrift framework (version 0.5.0 or later) http://incubator.apache.org/thrift/download/

[fb303] Facebook Bassline (included in thrift/contrib/fb303/) fb303 r697294 or later is required. 在thrift目录下面

[hadoop] optional. version 0.19.1 or higher (http://hadoop.apache.org) 可选!建议安装。本文未采用。

[libevent] Event Notification library[boost] Boost C++ library (version 1.36 or later) http://www.boost.org/users/download/[thrift] Thrift framework (version 0.5.0 or later) http://incubator.apache.org/thrift/download/[fb303] Facebook Bassline (included in thrift/contrib/fb303/) fb303 r697294 or later is required. 在thrift目录下面[hadoop] optional. version 0.19.1 or higher (http://hadoop.apache.org)


安装相关的依赖:

yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel ruby mono-devel

下载所需要的SPEC文件:/usr/src/redhat/SPEC

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/scribe/scribe.spec

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/fb303/fb303.spec

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/thrift/thrift.spec

下载源文件:/usr/src/redhat/SOURCES

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/scribe/scribe.2.01.patch

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/scribe/scribed.init

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/scribe/scribed.sysconfig

wget http://silassewell.googlecode.com/svn/trunk/2009/05/05/scribe-for-el5/thrift/thrift_protocol.ini

wget https://github.com/downloads/facebook/scribe/scribe-2.2.tar.gz

wget http://mirror.bjtu.edu.cn/apache//incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz

fb303 在thrift 里的contrib/fb303下面。可以打成tar.gz包放到SOURCES里即可。

制作 依赖包的RPM

rpmbuild -ba name.spec

文档参考:http://www.silassewell.com/blog/tag/fb303/

也可以下载他编译好的RPM包。然后只编译scribe的最新包就行。

文章目录