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/security/pro/kafka2.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.

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