1 Star 0 Fork 0

潘佳琪 / 诸葛糊涂

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
567.txt 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
潘佳琪 提交于 2021-10-26 02:21 . 1
# Name the components on this agent
a2.sources = r1
a2.sinks = k1
a2.channels = c1
# Describe/configure the source
a2.sources.r1.type = org.apache.flume.source.kafka.KafkaSource
a2.sources.r1.kafka.bootstrap.servers = hadoop101:9092
a2.sources.r1.kafka.topics = 1901a
a2.sources.r1.kafka.consumer.group.id = custom.g.id
a2.sources.r1.interceptors = i1
a2.sources.r1.interceptors.i1.type = com.bw.t1.LongToTime$Bulider25
a2.sources.r1.selector.type = multiplexing
a2.sources.r1.selector.header = type
a2.sources.r1.selector.mapping.time = c1
# Describe the sink
a2.sinks.k1.type = hdfs
a2.sinks.k1.hdfs.path = hdfs://hadoop101:8020/flume/events/%y-%m-%d/%H%M/%S
a2.sinks.k1.hdfs.filePrefix = events-
a2.sinks.k1.hdfs.round = true
a2.sinks.k1.hdfs.roundValue = 40
a2.sinks.k1.hdfs.roundUnit = second
a2.sinks.k1.hdfs.useLocalTimeStamp = true
a2.sinks.k1.hdfs.fileType = DataStream
a2.sinks.k1.hdfs.rollCount = 100
a2.sinks.k1.hdfs.rollSize = 128000000
a2.sinks.k1.hdfs.rollInterval = 25
# Use a channel which buffers events in memory
a2.channels.c1.type = memory
a2.channels.c1.capacity = 10000
a2.channels.c1.transactionCapacity = 1000
# Bind the source and sink to the channel
a2.sources.r1.channels = c1
a2.sinks.k1.channel = c1
1
https://gitee.com/pan-jia_qi/zhuge-confused.git
git@gitee.com:pan-jia_qi/zhuge-confused.git
pan-jia_qi
zhuge-confused
诸葛糊涂
master

搜索帮助