Hadoop实战-Flume之Source regex_extractor(十二)
2024-08-30 02:41:06
a1.sources = r1
a1.sinks = k1
a1.channels = c1 # Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444
a1.sources.r1.interceptors = i1 i2 i3 i4
a1.sources.r1.interceptors.i4.type = timestamp
a1.sources.r1.interceptors.i2.type = host
a1.sources.r1.interceptors.i3.type = static
a1.sources.r1.interceptors.i3.key = datacenter
a1.sources.r1.interceptors.i3.value = NEW_YORK
a1.sources.r1.interceptors.i1.type=regex_extractor
a1.sources.r1.interceptors.i1.regex = (\\d):(\\d):(\\d)
a1.sources.r1.interceptors.i1.serializers = s1 s2 s3
a1.sources.r1.interceptors.i1.serializers.s1.name = one
a1.sources.r1.interceptors.i1.serializers.s2.name = two
a1.sources.r1.interceptors.i1.serializers.s3.name = three # Describe the sink
a1.sinks.k1.type = logger # 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
最新文章
- 即时搜索(input框)
- UIPickerView滚轮选择器视图
- PAT 1023. 组个最小数 (20)
- GMU 简单使用一
- mormot json操作
- C#获取HTML文件指定DIV内容
- sql总结
- iOS 10 的一些资料整理
- 集合框架学习之排序Comparable&;Comoarator
- 三种方式得到LayoutInflater
- 代码实现IMapcontrol当前视图输出为图片功能
- lua调用C语言
- 【struts2】ActionContext与ServletActionContext
- 【朝花夕拾】四大组件之(二)Service篇
- layer.photos()异步修改图片地址后显示异常
- openstack--1--基础环境搭建
- java的并发和多线程
- RocketMQ专题1:入门
- docker容器网络通信原理分析
- iPhone How-to:如何调整UIView的Z-Order