Last active
July 16, 2017 15:33
-
-
Save dgadiraju/f04b711203baa60edc9521f936b6ed32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kandf.conf: Flume and Kafka integration | |
# Read streaming data from logs and push it to Kafka as sink | |
# Name the components on this agent | |
kandf.sources = logsource | |
kandf.sinks = ksink | |
kandf.channels = mchannel | |
# Describe/configure the source | |
kandf.sources.logsource.type = exec | |
kandf.sources.logsource.command = tail -F /opt/gen_logs/logs/access.log | |
# Describe the sink | |
# Flume version is 1.5.2 | |
# Make sure all kafka related jar files are available under | |
# /usr/hdp/2.5.0.0-1245/flume/lib | |
kandf.sinks.ksink.type = org.apache.flume.sink.kafka.KafkaSink | |
kandf.sinks.ksink.brokerList = nn01.itversity.com:6667,nn02.itversity.com:6667,rm01.itversity.com:6667 | |
kandf.sinks.ksink.topic = kafkadg | |
# Use a channel which buffers events in memory | |
kandf.channels.mchannel.type = memory | |
kandf.channels.mchannel.capacity = 1000 | |
kandf.channels.mchannel.transactionCapacity = 100 | |
# Bind the source and sink to the channel | |
kandf.sources.logsource.channels = mchannel | |
kandf.sinks.ksink.channel = mchannel | |
# Once you start agent run consumer command from this gist | |
# https://gist.github.com/dgadiraju/c4ed3195e563779e97a1658598269652 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment