ini 水槽到kafka.conf

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini 水槽到kafka.conf相关的知识,希望对你有一定的参考价值。

# 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

以上是关于ini 水槽到kafka.conf的主要内容,如果未能解决你的问题,请参考以下文章

ini 水槽

ini 水槽记录器,hdfs.conf

提高水槽性能的指导方针是啥

水槽仍然保留 .tmp 文件并且没有将文件完全复制到 HDFS

水槽的 Spool Dir 可以在远程机器上吗?

使用内存通道增加水槽中的文件大小