Flume SinkProcessor
2021-02-08 22:16
标签:关系 strong tran lan avro 绑定 adb class ilo flume2配置:Avro Source -> Memory Channel -> Logger Sink flume3配置:Avro Source -> Memory Channel -> Logger Sink 测试略 Flume SinkProcessor 标签:关系 strong tran lan avro 绑定 adb class ilo 原文地址:https://www.cnblogs.com/noyouth/p/13067366.html# 给三大组件取名
a1.sources = r1
a1.sinks = k1 k2
a1.channels = c1
#配置 NetCat Source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444
# 配置 Memory Channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# 配置 Avro Sink
a1.sinks.k1.type = avro
a1.sinks.k1.hostname = hadoop102
a1.sinks.k1.port = 4141
a1.sinks.k2.type = avro
a1.sinks.k2.hostname = hadoop102
a1.sinks.k2.port = 4142
# 配置 sink groups
a1.sinkgroups = g1
a1.sinkgroups.g1.sinks = k1 k2
a1.sinkgroups.g1.processor.type = failover
a1.sinkgroups.g1.processor.priority.k1 = 5
a1.sinkgroups.g1.processor.priority.k2 = 10
# 最大退避时间(期间不重试)
a1.sinkgroups.g1.processor.maxpenalty = 10000
# 配置三大组件的绑定关系
a1.sources.r1.channels = c1
# c1的数据发给k1或k2
a1.sinks.k1.channel = c1
a1.sinks.k2.channel = c1
# 给三大组件取名
a2.sources = r1
a2.channels = c1
a2.sinks = k1
# 配置 Avro Source
a2.sources.r1.type = avro
a2.sources.r1.bind = hadoop102
a2.sources.r1.port = 4141
# 配置 Memory Channel
a2.channels.c1.type = memory
a2.channels.c1.capacity = 1000
a2.channels.c1.transactionCapacity = 100
# 配置 Logger Sink
a2.sinks.k1.type = logger
# 配置三大组件的绑定关系
a2.sources.r1.channels = c1
a2.sinks.k1.channel = c1
# 给三大组件取名
a3.sources = r1
a3.channels = c1
a3.sinks = k1
# 配置 Avro Source
a3.sources.r1.type = avro
a3.sources.r1.bind = hadoop102
a3.sources.r1.port = 4142
# 配置 Memory Channel
a3.channels.c1.type = memory
a3.channels.c1.capacity = 1000
a3.channels.c1.transactionCapacity = 100
# 配置 Logger Sink
a3.sinks.k1.type = logger
# 配置三大组件的绑定关系
a3.sources.r1.channels = c1
a3.sinks.k1.channel = c1
上一篇:Tomcat9配置HTTP/2
下一篇:php 跨域设置