`
chakey
  • 浏览: 360757 次
  • 性别: Icon_minigender_1
  • 来自: 水星
社区版块
存档分类
最新评论

[2] Scribe的安装和简单使用例子

阅读更多

 

Scribe的安装

一、安装前提:

1:

libevent 

解压缩安装

./configure

make

make install


2:

boost (版本>=1.36)

解压缩安装

./configure

make

make install


3:Facebook基础服务

thrift (版本>=0.5.0)

fb303

先安装thrift,再安装fb303

解压并进入thrift目录      

./bootstrap.sh

./configure –with-boost=/usr/local/include/boost/ -- with-php-config=/phppath /bin/php-config

make

make install   


在当前目录 cd 到contrib/fb303/ :

./bootstrap.sh

./configure –with-boost=/usr/local/include/boost/

make

make install




4:

Hadoop(可选 版本>=0.19.1)


5:

设置PYTHON_PATH



二、安装Scribe

./bootstrap

./configure –with-boost=/usr/local/include/boost/ --enable-hdfs

make

make install


注意:

可以通过./configure --help 查看configure选项

例如

#禁用优化,打开调试模式(默认情况下是打开优化的)

./configure --disable-opt


# To disable static libraries and enable shared libraries. [ default has been set to static]

./configure --disable-static


# To build scribe with Hadoop support

./configure --enable-hdfs


# If the build process cannot find your Hadoop/Jvm installs, you may need to specify them manually:

./configure --with-hadooppath=/usr/local/hadoop --enable-hdfs CPPFLAGS="-I/usr/local/java/include -I/usr/local/java/include/linux" LDFLAGS="-ljvm -lhdfs"


# To set thrift home to a non-default location

./configure --with-thriftpath=/myhome/local/thrift


# If Boost is installed in a non-default location or there are multiple Boost versions

# installed, you will need to specify the Boost path and library names

./configure --with-boost=/usr/local --with-boost-system=boost_system-gcc40-mt-1_36 --with-boost-filesystem=boost_filesystem-gcc40-mt-1_36


三、配置环境变量

BOOST_ROOT=/usr/local/include/boost/

LD_LIBRARY_PATH=/usr/local/include/boost/lib::/usr/lob:/usr/local/lib


四、使用例子

这个例子展示了如何配置和发送信息到Scribe服务器

1:创建一个目录用于存放日志信息

mkdir /tmp/scribetest


2:使example1.conf中的配置信息启动Scribe服务

./bin/scribed  ./../examples/example1.conf 


3:打开一个新的终端控制台,使用scribe_cat发送一条信息到Scribe

echo "hello..." | ./bin/scribe_cat test


4:确定日志是否被记录

cat /tmp/scribetest/test/test_current


5:使用root查看Scribe的运行状态

./bin/scribe_ctrl status


6:查看Scribe计算器

./bin/scribe_ctrl counters


7:关闭 Scribe 

./bin/scribe_ctrl stop

 

example1.conf :

port=1463
max_msg_per_second=2000000
check_interval=3

# DEFAULT
<store>
category=default
type=buffer

target_write_size=20480
max_write_interval=1
buffer_send_rate=2
retry_interval=30
retry_interval_range=10

<primary>
type=file
fs_type=std
file_path=/tmp/scribetest
base_filename=thisisoverwritten
max_size=1000000
add_newlines=1
</primary>

<secondary>
type=file
fs_type=std
file_path=/tmp
base_filename=thisisoverwritten
max_size=3000000
</secondary>
</store>

1
3
分享到:
评论
1 楼 forchenyun 2011-02-23  
期待一些实际应用的例子

相关推荐

    scribe安装配置文档[汇编].pdf

    Scribe 安装配置文档主要包括四个部分:环境准备、安装 Boost 环境、安装 Thrift 环境和安装 Scribe。环境准备部分需要安装多个依赖环境,包括 gcc-c++、libevent、automake、autoconf、m4、bison、zlib、bzip2、...

    scribe详细安装文档

    很好的东西,描述如何详细的安装scribe,编写安装脚本

    scribe软件

    scribe软件

    fb303,使用Java连接Scribe必备的JAR包

    包含编译好的FacebookService, fb_status, FacebookBase, LogEntry, ResultCode, scribe类。 按照完thrift和scribe后,就不用自己生成了。

    Oauth实例(使用Scribe-java)

    Oauth实例(使用Scribe-java实现新浪微博的Oauth)

    scribe客户端所需jar包

    scribe客户端所需要用到的jar包,里面还包含一个java客户端用log4j向scribe服务端发送日志的小例子

    VideoScribe.3.2.003

    如果您想自己尝试一下,则可以以某种方式安装摄像机并花费数小时进行绘制,但是更有效的方法是使用VideoScribe。它使您可以创建自己绘制的视频演示文稿。界面的现代设计及其直观的控件使此过程尽可能简单。 该软件...

    scribe-1.3.5.jar

    scribe-1.3.5.jar

    facebook scribe

    facebook的log系统 - scribe

    scribe+thrift+fb303已经编译好的rpm包,直接下载安装使用

    最佳环境 CentOS 5.4 Scribe真正可用rpm安装包 apache-thrift-0.7.0-1.x86_64.rpm,fb303-0.7.0-1.x86_64.rpm,scribe-2.2-3.x86_64.rpm。无需编译,一命令安装。简单快捷,方便部署。 ============================...

    VideoScribe.7z

    VideoScribe.exeVideoScribe.exeVideoScribe.exeVideoScribe.exeVideoScribe.exeVideoScribe.exe

    Flat earth scribe

    Flat earth scribe

    VideoScribe

    VideoScribe手绘视频制作软件

    scribe-2.2.tar.gz

    scribe-2.2.tar.gz 下载地址: https://github.com/facebook/scribe Scribe is a server for aggregating log data streamed in real time from a large number of servers. It is designed to be scalable, ...

    Scribe日志记录讲解

    thrift框架的分布式日志记录框架,支持多种语言实现。

    Facebook大量数据处理 Scribe.zip

    Facebook大量数据处理 Scribe ,Scribe旨在帮助Facebook处理服务器上的大量数据,正像Scribe网页所述“如经常访问Fa...

    scribe日志系统文档

    scribe日志系统使用文档 本文档描述scribe日志的发送,日志内容分析,用户行为的统计,系统错误信息的记录和统计内容和错误内容的查询

    ddth-log2scribe:Log4j & Slf4j 适配器将日志写入 scribe 服务器

    Log4j 和 Slf4j 适配器将日志写入 scribe 服务器。 项目主页: : OSGi 环境:ddth-log2scribe 模块打包为 OSGi 包。 安装 最新发布版本: 0.1.0 。 请参阅 。 Maven 依赖: &lt; groupId&gt;...

    VideoScribe for mac版

    一款非常有趣的手绘动画视频制作软件,我们经常会看到一些创意动画视频,其中就有一只拿着画笔的手画出整幅画面,就像快进效果的沙画一样。这种手绘视频不仅有创意,还可以装X,自己可以制定视频内容,可以是你跟你...

    scribe-log4j:将日志消息发送到 Scribe 的 log4j appender

    将 scribe-client 安装到本地 maven 仓库 cd scribe-log4j/scribe-client mvn install 运行聚合日志的 scribe 服务器(请参阅下面的简短说明) 如果需要,请修复scribe-log4j/scribe-example/src/main/resources/...

Global site tag (gtag.js) - Google Analytics