flume多個source

agent1.channels=ch1app

agent1.sources=exec-source1 exec-source2orm

agent1.sinks=hdfs-sink1ci

agent1.channels.ch1.type=memory
it

agent1.channels.ch1.capacity=1000io

agent1.channels.ch1.transactionCapacity=1000thread

agent1.channels.ch1.keep-alive=30date


agent1.sources.exec-source1.type=execfile

agent1.sources.exec-source1.command=/usr/bin/vmstat 1channel

agent1.sources.exec-source1.channels=ch1command

agent1.sources.exec-source1.threads=5


agent1.sources.exec-source2.type=exec

agent1.sources.exec-source2.command=tail -F /root/date.txt

agent1.sources.exec-source2.channels=ch1

agent1.sources.exec-source2.threads=5


agent1.sinks.hdfs-sink1.channel=ch1

agent1.sinks.hdfs-sink1.type=hdfs

agent1.sinks.hdfs-sink1.hdfs.path=hdfs://slaver3:8020/root/

agent1.sinks.hdfs-sink1.hdfs.writeFormat=Text

agent1.sinks.hdfs-sink1.hdfs.fileType=DataStream

agent1.sinks.hdfs-sink1.hdfs.rollInterval=2000

agent1.sinks.hdfs-sink1.hdfs.rollSize=2000

agent1.sinks.hdfs-sink1.hdfs.rollCount=20

agent1.sinks.hdfs-sink1.hdfs.batchSize=1000

agent1.sinks.hdfs-sink1.hdfs.txnEventMax=1000

agent1.sinks.hdfs-sink1.hdfs.callTimeout=60000

agent1.sinks.hdfs-sink1.hdfs.appendTimeout=60000

agent1.sinks.hdfs-sink1.hdfs.filePrefix=%Y-%m-%d

agent1.sinks.hdfs-sink1.hdfs.useLocalTimeStamp=true

相關文章
相關標籤/搜索