代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。