Я нашел эти старые инструкции по установке и использовал их в качестве отправных точек:
http://www.design -ireland.net /? Http% 3A // www.design-ireland.net / article / Installing_Facebook_Scribe_on_Fedora_8 http://boost.2283326.n4.nabble.com/1-42-0-Release-candidates-available-td2626376.html
Установка
# download scribe code (I opted for /local)
cd /local
git clone https://github.com/facebook/scribe.git scribe
# install libevent
yum install libevent
yum install libevent-devel
# install boost - the version installed by 'yum boost' didn't seem to be work with scribe
# had to build my own from one revision back, v1.45, as there was a bug with current version
mkdir boost
cd boost
wget http://sourceforge.net/projects/boost/files/boost/1.45.0/boost_1_45_0.tar.gz
tar zxvf boost_1_45_0.tar.gz
boostrap.sh
./bjam -sNO_COMPRESSION=1
# Install thrift and apply patch (see below)
mkdir thrift
cd thrift
yum install python-devel
wget http://mirror.olnevhost.net/pub/apache//thrift/0.6.1/thrift-0.6.1.tar.gz
tar -zxvf thrift-0.6.1.tar.gz
cd thrift-0.6.1
# Thrift patch applied: https://issues.apache.org/jira/browse/THRIFT-1060
make
make install
# Install fb303
cd contrib/fb303
./bootstrap
./configure
make
make install
# scribe
cd /local/scribe
export LD_LIBRARY_PATH="/usr/local/lib"
/sbin/ldconfig
./bootstrap.sh
./configure
make
Проверка
Измените scribe / example / example1.conf, чтобы он соответствовал вашемуenvironment
Создайте следующий скрипт краткосрочного запуска
export LD_LIBRARY_PATH="/usr/local/lib"
scribed -c ./modified_example.conf
Пришлось открыть Thrift-порт 1463 на коробке EC2, добавив мой диапазон MAC-адресов во входящие TCP-порты группы безопасности
Я написал простое приложение для тестирования ruby, используя scribe и thrift_client gem
require 'scribe'
client = Scribe.new("xxx-xxx-xx-xxx-xxx.compute-1.amazonaws.com:1463", "default" ,false, {:connect_timeout => 3, :retries => 3})
(0..100).each do |x|
n = Time.now
begin
client.log("#{n} #{"%10.6f" % n.to_f} - testing loop #{x}", "bucket-#{x % 10}")
rescue Exception => e
puts e.message
puts e.backtrace.inspect
end
sleep 0.01
end