This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-tsg-olap-dll-multipo…/external-flume/conf/proxy/pro/kafka1.properties
2020-05-14 13:34:58 +08:00

26 lines
1.0 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

a2.sources = s2
a2.channels = c2
#指定source收集到的数据发送到哪个管道
a2.sources.s2.channels = c2
#taildir source
a2.sources.s2.type = TAILDIR
a2.sources.s2.channels = c2
a2.sources.s2.positionFile = /var/taildir_position.json
a2.sources.s2.filegroups = f1
a2.sources.s2.filegroups.f1 = /home/test/log1/.*dat
a2.sources.s2.filegroups.f2 = /home/test/log2/.*dat
a2.sources.s2.maxBatchCount = 1000
# kafka channel充当生产者
a2.channels.c2.type = org.apache.flume.channel.kafka.KafkaChannel
a2.channels.c2.brokerList = 192.168.40.203:9092
a2.channels.c2.zookeeperConnect=192.168.40.203:2181/kafka
a2.channels.c2.topic = recv_test
#false表示是以纯文本的形式写进入的true是以event的形式写进入的以event写进入时会出现乱码 默认是true
a2.channels.c2.parseAsFlumeEvent = false
a2.channels.c2.kafka.producer.acks = 1
a2.channels.c2.producer.type=async
a2.channels.c2.queue.buffering.max.ms = 5000
a2.channels.c2.queue.buffering.max.messages=20000
a2.channels.c2.batch.num.messages=500