#配置文a1. Sources=R1 a1.sinks=K1 K2 a1.channels=C1 C2 #Describe/Configure the source A1.sources.r1.type=Avroa1.sources.r1.bind=Slave3a1.sources.r1.port=50001A1.sources.r1.host=Slave3a1.sources.r1.selector.type=Replicatinga1.sources.r1.channels=C1 C2 #第一个 hdfsa1.sinks.k1.type=Hdfsa1.sinks.k1.channel=C1a1.sinks.k1.hdfs.path=/maats5/%{logtype}/logdate=%{date}/A1.sinks.k1.hdfs.filePrefix=%{logtype}-%{date}a1.sinks.k1.hdfs.round=trueA1.sinks.k1.hdfs.roundValue=1A1.sinks.k1.hdfs.roundUnit=Houra1.sinks.k1.hdfs.rollInterval=180000a1.sinks.k1.hdfs.rollSize=134217700A1.sinks.k1.hdfs.useLocalTimeStamp=trueA1.sinks.k1.hdfs.fileType=DataStream A1.sinks.k1.hdfs.writeFormat=Text #第二个到kafka #a1.channels=c1#a1.sinks=K1#a1.sinks.k1.type=Org.example.mysink#a1.sinks.k1.channel=C1a1.sinks.k2.channel=C2a1.sinks.k2.type=My.bigdata.KafkaSink2a1.sinks.k2.kafka.topic=maats1a1.sinks.k2.kafka.bootstrap.servers= Slave3:9092a1.sinks.k2.kafka.flumeBatchSize= -A1.sinks.k2.kafka.producer.acks=1a1.sinks.k2.kafka.producer.linger.ms=1#a1. Sinks.ki.kafka.producer.compression.type=snappy# USEA Channel which buffers eventsinchMemory A1.channels.c1.type=Memory A1.channels.c1.capacity= +a1.channels.c1.transactionCapacity= -A1.channels.c2.type=Memory A1.channels.c2.capacity= +a1.channels.c2.transactionCapacity= -
Flume Multi-chanel Configuration