Flume1.3.1配置-汇聚节点

#===newlog-collector CONFIG START=======================================================================================


newlog-collector.sources = updatelog
newlog-collector.sinks = updatelog
newlog-collector.channels =updatelog


#----updatelog----
# Describe/configure the source
newlog-collector.sources.updatelog.type = com.xxxx.flume.sources.AvroSource
newlog-collector.sources.updatelog.compression-type = deflate
newlog-collector.sources.updatelog.bind = 0.0.0.0
newlog-collector.sources.updatelog.port = 11000
newlog-collector.sources.updatelog.interceptors = i0 i1
newlog-collector.sources.updatelog.interceptors.i0.type = timestamp
newlog-collector.sources.updatelog.interceptors.i1.type=regex_extractor
newlog-collector.sources.updatelog.interceptors.i1.regex=\\t(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\t
newlog-collector.sources.updatelog.interceptors.i1.serializers=s1
newlog-collector.sources.updatelog.interceptors.i1.serializers.s1.type=org.apache.flume.interceptor.RegexExtractorInterceptorMillisSerializer
newlog-collector.sources.updatelog.interceptors.i1.serializers.s1.name=timestamp
newlog-collector.sources.updatelog.interceptors.i1.serializers.s1.pattern=yyyy-MM-dd HH:mm:ss


# Describe the sink
newlog-collector.sinks.updatelog.type = hdfs
newlog-collector.sinks.updatelog.hdfs.path=hdfs://nn.xxxx.com:9000/user/flume/original/updatelog/%Y/%m/%d
newlog-collector.sinks.updatelog.hdfs.filePrefix=updatelog-%Y%m%d-%H0000000
newlog-collector.sinks.updatelog.hdfs.codeC=LzopCodec
newlog-collector.sinks.updatelog.hdfs.fileType=CompressedStream
newlog-collector.sinks.updatelog.hdfs.rollInterval=600
newlog-collector.sinks.updatelog.hdfs.rollSize=0
newlog-collector.sinks.updatelog.hdfs.rollCount=0
newlog-collector.sinks.updatelog.hdfs.writeFormat=Text
newlog-collector.sinks.updatelog.hdfs.batchSize=1000


# Describe the channel
newlog-collector.channels.updatelog.type = file
newlog-collector.channels.updatelog.checkpointDir = /data0/flume-ng-channel/newlog/updatelog/checkpoint
newlog-collector.channels.updatelog.dataDirs = /data0/flume-ng-channel/newlog/updatelog/data
newlog-collector.channels.updatelog.transactionCapacity = 1000




# Bind the source and sink to the channel
newlog-collector.sources.updatelog.channels = updatelog
newlog-collector.sinks.updatelog.channel = updatelog
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值