-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-flume.conf
46 lines (24 loc) · 1.11 KB
/
github-flume.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
###Create TwitterAgent
TwitterAgent.sources=Twitter
TwitterAgent.sinks=HDFS
TwitterAgent.channels=Memorychannel
###Configure source - Twitter
#To get details of consumerkey,consumersecret,accessToken,accessTokenSecret,check in the "README"
TwitterAgent.sources.Twitter.type=org.apache.flume.source.twitter.TwitterSource
TwitterAgent.sources.Twitter.consumerKey=
TwitterAgent.sources.Twitter.consumerSecret=
TwitterAgent.sources.Twitter.accessToken=
TwitterAgent.sources.Twitter.accessTokenSecret=
###Configure sink - HDFS
TwitterAgent.sinks.HDFS.type=hdfs
TwitterAgent.sinks.HDFS.hdfs.path=<path of hdfs>
TwitterAgent.sinks.HDFS.hdfs.fileType=DataStream
TwitterAgent.sinks.HDFS.hdfs.writeFormat=Text
TwitterAgent.sinks.HDFS.hdfs.batchSize=1000
###Configure channel - memory/file
TwitterAgent.channels.Memorychannel.type=memory
TwitterAgent.channels.Memorychannel.capacity=10000
TwitterAgent.channels.Memorychannel.transactionCapacity=100
###Connect source to channel and sink to channel
TwitterAgent.sources.Twitter.channels=Memorychannel
TwitterAgent.sinks.HDFS.channel=Memorychannel