组件定义
a2.sources=r1 r2
a2.channels=c1 c2
a2.sinks=k1 k2
Source配置
a2.sources.r1.type = org.apache.flume.source.kafka.KafkaSource
a2.sources.r1.batchSize = 5000
a2.sources.r1.batchDurationMillis = 2000
a2.sources.r1.kafka.bootstrap.servers = node-201:9092
a2.sources.r1.kafka.zookeeperConnect = node-201:2181
a2.sources.r1.kafka.topics=topic_start
a2.sources.r2.type = org.apache.flume.source.kafka.KafkaSource
a2.sources.r2.batchSize = 5000
a2.sources.r2.batchDurationMillis = 2000
a2.sources.r2.kafka.bootstrap.servers = node-201:9092
a2.sources.r2.kafka.zookeeperConnect = node-201:2181
a2.sources.r2.kafka.topics=topic_event
Channel配置
a2.channels.c1.type=memory
a2.channels.c1.capacity=100000
a2.channels.c1.transactionCapacity=