flume
宁君
大数据
展开
-
flume拦截器的使用
interceptors 拦截器 可以拦截数据源 source 给数据源添加数据 header信息 为了后续的数据的更加方便的使用 默认拦截器有: 1)Timestamp Interceptor 在数据源上添加时间戳 headers:{timestamp=1554707017331} key: timestamp value:当前系统的时间戳 2)host interc...原创 2020-03-15 02:44:35 · 477 阅读 · 0 评论 -
flume各种配置
source 1 avro 从网络收集数据 #a2 a2.sources = r2 a2.sinks= k2 a2.channels = c2 a2.sources.r2.type=avro a2.sources.r2.bind=localhost a2.sources.r2.port=9999 a2.sinks.k2.type = logger a2.channels.c2.type=...原创 2020-03-15 02:32:01 · 215 阅读 · 0 评论