-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathflume-kafka.conf
32 lines (26 loc) · 951 Bytes
/
flume-kafka.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# flume-storm.conf: A single-node Flume configuration
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
#a1.sources.r1.type = netcat
#a1.sources.r1.bind = localhost
#a1.sources.r1.port = 44444
a1.sources.r1.type = syslogudp
a1.sources.r1.port = 7077
a1.sources.r1.host = localhost
# Describe the sink
a1.sinks.k1.type = com.thilinamb.flume.sink.KafkaSink
a1.sinks.k1.topic = thilina
a1.sinks.k1.preprocessor = com.thilinamb.flume.sink.example.SimpleMessagePreprocessor
a1.sinks.k1.kafka.metadata.broker.list = localhost:9092
a1.sinks.k1.kafka.serializer.class = kafka.serializer.StringEncoder
a1.sinks.k1.kafka.request.required.acks = 1
# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1