-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitter.conf
26 lines (26 loc) · 1.41 KB
/
twitter.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
# Naming the components on the current agent.
TwitterAgent.sources = Twitter
TwitterAgent.channels = MemChannel
TwitterAgent.sinks = HDFS
# Describing/Configuring the source
TwitterAgent.sources.Twitter.type = com.cloudera.flume.source.TwitterSource
TwitterAgent.sources.Twitter.consumerKey = GT0v7i1VAWEfWgK4REVYEOHbW
TwitterAgent.sources.Twitter.consumerSecret = WoTe8VkRoSNveSiiBDzDpFSKFvRV1rrvnbKZ8ciUYQljGHcvvO
TwitterAgent.sources.Twitter.accessToken = 1057372625788379136-Mwlf1kH6vam219aqNtuLYE2rQuy7V4
TwitterAgent.sources.Twitter.accessTokenSecret = vemKHK4FunGAj0rzGEgIqKSDdAvZ6hAZ4c32vogb8FdXx
TwitterAgent.sources.Twitter.keywords = Pepsi, Coca-cola
# Describing/Configuring the sink
TwitterAgent.sinks.HDFS.type = hdfs
TwitterAgent.sinks.HDFS.hdfs.path = hdfs://sandbox-hdp.hortonworks.com:8020/user/dfonseca/twitter
TwitterAgent.sinks.HDFS.hdfs.fileType = DataStream
TwitterAgent.sinks.HDFS.hdfs.writeFormat = Text
TwitterAgent.sinks.HDFS.hdfs.batchSize = 1000
TwitterAgent.sinks.HDFS.hdfs.rollSize = 0
TwitterAgent.sinks.HDFS.hdfs.rollCount = 10000
# Describing/Configuring the channel
TwitterAgent.channels.MemChannel.type = memory
TwitterAgent.channels.MemChannel.capacity = 10000
TwitterAgent.channels.MemChannel.transactionCapacity = 100
# Binding the source and sink to the channel
TwitterAgent.sources.Twitter.channels = MemChannel
TwitterAgent.sinks.HDFS.channel = MemChannel