flume配置文件--httpSource,kafkaChannel,hdfsSink

tier1.sources = httpSource
tier1.channels = kafkaChannel
tier1.sinks = hdfsSink

tier1.sources.httpSource.channels = kafkaChannel
tier1.sinks.hdfsSink.channels = kafkaChannel


#--------httpSource--------
tier1.sources.httpSource.type = org.apache.flume.source.http.HTTPSource
tier1.sources.httpSource.port = 9999
tier1.sources.httpSource.channels = kafkaChannel
tier1.sources.httpSource.handler = com.bolo.flume.http.BoloJSONHandler

#--------kafkaChannel---------
tier1.channels.kafkaChannel.type = org.apache.flume.channel.kafka.KafkaChannel
tier1.channels.kafkaChannel.capacity = 10000
tier1.channels.kafkaChannel.transactionCapacity = 1000
tier1.channels.kafkaChannel.brokerList=localhost:9092
tier1.channels.kafkaChannel.topic=TOPIC_USER_BEHAVIOR_NEW
tier1.channels.kafkaChannel.zookeeperConnect= localhost饿:2181
tier1.channels.kafkaChannel.groupId    = test


#---------hdfsSink 相关配置------------------
tier1.sinks.hdfsSink.type = org.apache.flume.sink.hdfs.HDFSEventSink
tier1.sinks.hdfsSink.hdfs.path = /data/suiyue/data-ods/client-event/%Y%m%d
tier1.sinks.hdfsSink.hdfs.writeFormat = Text
tier1.sinks.hdfsSink.hdfs.fileType = DataStream
tier1.sinks.hdfsSink.hdfs.rollSize = 33554432
tier1.sinks.hdfsSink.hdfs.rollCount = 0
tier1.sinks.hdfsSink.hdfs.rollInterval = 30
tier1.sinks.hdfsSink.hdfs.batchSize=1000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值