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

26 lines
1.0 KiB
Properties
Raw Normal View History

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