Scribe is a newly released log collection tool that dumps log files from various nodes in a cluster to Scribe servers, where the logs are stored for further use. Facebook describes their usage of Scribe by saying, “[Scribe] runs on thousands of machines and reliably delivers tens of billions of messages a day.” It turns out that Scribe is rather difficult to install, so the hope of this post is to help those of you attempting to install Scribe. The first step is to get dependencies installed.
Dependencies
Scribe has many dependencies that must be installed in order for Scribe to be built properly. They are listed here:
* ruby (ruby and ruby-dev)
* python (python and python-dev)
* libevent (libevent and libevent-dev)
* boost v1.36
* Thrift
* fb303 (included in Thrift in contrib/fb303)
The order in which these are installed is important. First, you must install libevent, then libevent-dev, then boost, then Thrift, and finally fb303. I installed libevent and libevent-dev from RPMs, whereas boost, Thrift, and fb303 were installed from source. I was unable to get Scribe, Thrift, and fb303 to locate the boost libraries and includes correctly with the default boost install directories, so I installed boost in /usr/local/boost, /usr/local/boost/bin, /usr/local/boost/lib, and /usr/local/boost/include. Run ‘./configure –help’ when configuring boost to see how to specify these options.
When configuring Thrift and fb303, you must specify your location of boost with the “–with-boost=/path/to/boost/root” option and also set your BOOST_ROOT environment variable.
Finally, you must make sure your LD_LIBRARY_PATH environment variable contains the lib folders that house the Thrift, fb303, boost, and libevent C++ libraries. LD_LIBRARY_PATH follows the same pattern as the PATH variable. That is, directories that contain libraries are separated by colons. If you forget to set your LD_LIBRARY_PATH variable, then you’ll get the following error when running scribed:
scribed: error while loading shared libraries: libboost_system-gcc41-mt-1_36.so.1.36.0: cannot open shared object file: No such file or directory
Install Scribe
Once you’ve successfully installed all dependencies, installing Scribe is easy. Scribe ships with a fairly comprehensive README file, but the instructions involving boost’s configuration are slightly incorrect. I needed to pass the “–with-boost=/usr/local/boost” options while configuring. However, the README file says to use “–with-boost /usr/local/boost”. Here is my full configure statement:
./configure –with-boost=/usr/local/boost –with-boost-system=boost_system-gcc41-mt-1_36 –with-boost-filesystem=boost_filesystem-gcc41-mt-1_36
We installed Scribe from trunk instead of releases/scribe-2.0.
Configure Scribe
Scribe ships with a few good examples in $SCRIBE_ROOT/examples; just take a look at the README in the examples directory, and you should be ready to rock. However, the README doesn’t document that the scribe_ctrl and scribe_cat programs are in the examples directory.
I hope this tutorial was helpful! Send us an email if you have any issues. We’ll make a follow-up post later talking about more in-depth Scribe configurations and benchmarking.
分享到:
相关推荐
文件列表如下: Installing TensorFlow for Java _ TensorFlow.pdf; libtensorflow_jni-cpu-windows-x86_64-1.4.1.zip; libtensorflow-1.4.1.jar;
在IT领域,特别是网络管理与监控中,SWAT(Samba Web Administration Tool)是一个非常有用的工具,它允许用户通过Web界面来管理和配置Samba服务器。本文将详细介绍如何在Ubuntu系统上为802.11无线通信节点安装SWAT...
Serviceguard Extension for RAC(简称SGeRAC)是HP提供的一款用于支持Oracle RAC集群软件在Serviceguard环境下运行的产品。它通过集成HP Serviceguard集群软件和Oracle RAC,实现了高可用性和负载均衡等功能。 ###...
CIMCO FOR INSTALLING FOR MASTERCAM
TUTORIAL FOR INSTALLING MINIX-386 MINIX 升级到 MINIX-386的经典 John Nall写的关于如何使用Bruce Evans的补丁程序将MINIX 1.5.10版升级到MINIX-386的说明。
【Cacti安装指南——Linux环境下的网络与系统监控】 ...本教程将详细解释如何在RHEL AS4系统上安装Cacti。 ### 前言 此文档由Carywu于2008年10月15日编写,旨在提供一个详细的Cacti服务器安装步骤,你可以按照这个...
### 安装Oracle 10g R2在RHEL 5 & OEL 5 (x86_64)上的需求 #### 概述 本文档详细介绍了在Red Hat Enterprise Linux(RHEL)5和Oracle Enterprise Linux(OEL)5(x86_64架构)上安装Oracle 10g Release 2数据库的...
eCos RedBoot guide-A guide for installing and using RedBootdebug and bootstrap firmware.eCos操作系统redboot源码详细说明及使用移植说明
Installing Avaya S8800 Server
Fully updated for Windows Server 2012 R2! Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. ...
英特尔@的OpenCL的SDK,内置vs插件,可以直接在vs中创建编译OpenCL内核代码,Kernel分析等等; Intel OpenCl SDK intel_sdk_for_opencl_2017_7.0.0.2567 因为大小限制,这是一个网盘地址。
A_shell_script_for_one_key_installing_all_basic_so_one-key-installer-for-developer
- **Installing the Alfresco Tomcat bundle on Linux**:对于 Linux 平台,同样提供了仅安装 Alfresco 和 Tomcat 的捆绑包的方法。 - **Installing Alfresco on Mac (full installation)**:Mac 用户的完整安装指南...
IPMItool 1.8.8 for Microsoft Windows 2003 with Sun IPMI System Management Driver Support provides the open... Refer to the README.pdf in this distribution for information on installing and using ipmievd.
OpenERP Installing Ubuntu9.04
### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...
### 安装TeleType GPS蓝牙模块到Windows Mobile 5.0 PDA的详细步骤与关键技术点 #### 标题解析 - **标题**: “安装TeleType GPS蓝牙模块至Windows Mobile 5.0 PDA” - 该标题明确指出了本指南的核心内容:即如何在...
Stable Diffusion 一键安装,国内镜像,无需魔法,支持xformers提速,可以根据任何领域的文本输入生成高质量、高分辨率且逼真的图像。 默认选项Window RTX2060 3秒出图
Please note: In rare cases this installation may fail with a message to check a log file for more details and it may remain partially installed. This may cause an "already installed" error when you ...
### MySQL 5.7在Windows系统上的安装与配置教程 #### 概述 MySQL是由Oracle公司维护的一个开源的关系型数据库管理系统。它以其性能稳定、功能强大而被广泛应用于各种应用场景中。本文档主要介绍了如何在Windows...