| 301 |
ashish |
1 |
## Copyright (c) 2007-2009 Facebook
|
|
|
2 |
##
|
|
|
3 |
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
## you may not use this file except in compliance with the License.
|
|
|
5 |
## You may obtain a copy of the License at
|
|
|
6 |
##
|
|
|
7 |
## http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
##
|
|
|
9 |
## Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
11 |
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
12 |
## See the License for the specific language governing permissions and
|
|
|
13 |
## limitations under the License.
|
|
|
14 |
##
|
|
|
15 |
## See accompanying file LICENSE or visit the Scribe site at:
|
|
|
16 |
## http://developers.facebook.com/scribe/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
##
|
|
|
20 |
## Sample Scribe configuration
|
|
|
21 |
##
|
|
|
22 |
|
|
|
23 |
# This file configures Scribe to listen for messages on port 1463 and write
|
|
|
24 |
# all messages to Hadoop. If unable to write to Hadoop, Scribe will buffer to
|
|
|
25 |
# /tmp and keep retrying.
|
|
|
26 |
|
|
|
27 |
port=1463
|
|
|
28 |
max_msg_per_second=2000000
|
|
|
29 |
check_interval=1
|
|
|
30 |
max_queue_size=100000000
|
|
|
31 |
num_thrift_server_threads=2
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
# DEFAULT - write all messages to hadoop
|
|
|
35 |
<store>
|
|
|
36 |
category=default
|
|
|
37 |
type=buffer
|
|
|
38 |
|
|
|
39 |
target_write_size=20480
|
|
|
40 |
max_write_interval=1
|
|
|
41 |
buffer_send_rate=1
|
|
|
42 |
retry_interval=30
|
|
|
43 |
retry_interval_range=10
|
|
|
44 |
|
|
|
45 |
<primary>
|
|
|
46 |
type=file
|
|
|
47 |
fs_type=hdfs
|
|
|
48 |
file_path=hdfs://myhadoopserver:9000/scribedata
|
|
|
49 |
create_symlink=no
|
|
|
50 |
use_hostname_sub_directory=yes
|
|
|
51 |
base_filename=thisisoverwritten
|
|
|
52 |
max_size=1000000000
|
|
|
53 |
rotate_period=daily
|
|
|
54 |
rotate_hour=0
|
|
|
55 |
rotate_minute=5
|
|
|
56 |
add_newlines=1
|
|
|
57 |
</primary>
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
<secondary>
|
|
|
61 |
type=file
|
|
|
62 |
fs_type=std
|
|
|
63 |
file_path=/tmp/scribetest
|
|
|
64 |
base_filename=thisisoverwritten
|
|
|
65 |
max_size=3000000
|
|
|
66 |
</secondary>
|
|
|
67 |
</store>
|