# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = spooldir
a1.sources.r1.spoolDir = /bigdata/testdata/spool_dir
# Describe the sink
a1.sinks.k1.type = hdfs
a1.sinks.k1.hdfs.path=hdfs://localhost:8020/flume/spooling/
a1.sinks.k1.hdfs.fileType=CompressedStream
a1.sinks.k1.hdfs.codeC=org.apache.hadoop.io.compress.GzipCodec
a1.sinks.k1.hdfs.filePrefix=events-
a1.sinks.k1.hdfs.rollSize=0
a1.sinks.k1.hdfs.rollCount =1000000
a1.sinks.k1.hdfs.rollInterval=30
# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
还没有评论,来说两句吧...