加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

scribe安装

发布时间:2020-12-16 00:31:02 所属栏目:大数据 来源:网络整理
导读:安装过程: 一、输入gcc –v 检查gcc版本是否3.3.5 ?????? 是,则继续下一步。否,则安装gcc 。 二、安装ruby 和python python 用默认安装路径。Ruby 推荐使用默认路径 ??? 安装过程均为./configure? make? make install 三、安装lievent ? 解压安装即可 ???
安装过程:

一、输入gcc –v 检查gcc版本是否>3.3.5

?????? 是,则继续下一步。否,则安装gcc 。

二、安装ruby 和python

python 用默认安装路径。Ruby 推荐使用默认路径

??? 安装过程均为./configure? make? make install

三、安装lievent ?

解压安装即可

?????? 安装过程为./configure? make? make install

四、安装 boost 1.45.0? ?

解压安装即可(不可改路径)
./bootstrap.sh
./jpam install

五、安装 php 和libxml2
php要make安装,或者找到默认安装的php-config路径
先安装libxml2 (php依赖它) 在安装php(默认安装路径)

?????? 安装过程均为./configure? make? make install

六、安装facebook 服务-- thrift 和 fb303

?????? 首先解压并进入thrift 目录???? ?
./bootstrap.sh
./configure –-with-boost=/usr/local/include/boost/ --with-php-config=/phppath/bin/php-config

make

make install?? ?

thrift 安装完毕。

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

./bootstrap.sh

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

make

make install

fb303安装完毕。

七、安装scribe

?????? ./bootstrap

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

make

make install

?

安装完毕。

?

配置环境变量 :

BOOST_ROOT=/usr/local/include/boost/

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

测试:

??????? /usr/local/bin/scribed? [scribe 解压目录]/examples/example1.conf


???? 回车会出现:

???? [Sun Oct 31 23:37:38 2010] "STATUS: STARTING"
Java代码

??? [Sun Oct 31 23:37:38 2010] "STATUS: configuring"? ?
??? [Sun Oct 31 23:37:38 2010] "got configuration data from file </home/setups/scribe/scribe/examples/example1.conf>"? ?
??? [Sun Oct 31 23:37:38 2010] "CATEGORY : default"? ?
??? [Sun Oct 31 23:37:38 2010] "Creating default store"? ?
??? [Sun Oct 31 23:37:38 2010] "configured <1> stores"? ?
??? [Sun Oct 31 23:37:38 2010] "STATUS: "? ?
??? [Sun Oct 31 23:37:38 2010] "STATUS: ALIVE"? ?
??? [Sun Oct 31 23:37:38 2010] "Starting scribe server on port 1463"? ?
??? Thrift: Sun Oct 31 23:37:38 2010 libevent 2.0.7-rc method epoll?


客户端安装:

前提:已连接到internet,并有root权限,如果不用cpan安装模块,将会把人累死,因为模块之间的依赖变幻莫测。

进入CPAN shell:
perl -MCPAN -e shell

初次运行CPAN时需要做一些设置,机器需要能联网
cpan>h? (获得帮助) ?
cpan>m (列出CPAN上所有模块的列表)
cpan>install module_name (自动完成从下载到安装的全过程。) ?
cpan>q (安装完,后退出)

卸载方式:

perl -e 'print join "n",@INC' 显示出环境变量INC指向的目录

在这些目录下查找模块的.pm文件,删除此文件即可。

手动安装:
perl Makefile.PL
make
make install

手动安装方式卸载:
到之前安装源码的目录执行:
make uninstall|grep unlink|sh
也就是删除之前安装的模块的相关文件。
然后删除安装目录下Makefile文件,这个是前一次安装生成的.

再重复安装过程。或者删掉目录,重新解压新目录进行安装。



1、安装File::Tail::Scribe???? cpan>? install File::Tail::Scribe

2、安装thrift的perl模块 cd thrift的安装目录/lib/perl/??? 需要依赖Class::Accessor和Bit::Vector

????????? perl Makefile.PL
????????? make
????????? make instal

3、安装facebook的perl模块

?????? cd thrift的安装目录/contrib/fb303
????? thrift --gen perl if/fb303.thrift
????? cp -a gen-perl/* /usr/local/lib/perl5/5.12.2

4、安装scribe 的perl模块

??????? cd scribe的安装目录/if
??????? thrift -I thrift的安装目录/contrib/ --gen perl scribe.thrift
??????? cp -a gen-perl/* /usr/local/lib/perl5/5.12.2?
根据scribe版本的不同,生成的模块路径会有所变化,当前用的是2.2版本,用2.1版本可能会出现一些问题,比如找不到模块等。
5、Proc::ProcessTable??????? 会出现test不成功,安装自动取消。 使用 cpan>? force install Proc::ProcessTable

/usr/local/bin/tail_to_scribe.pl -config tail_to_test.conf -debug /opt/scribeClient/test.log -daemon

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读