![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
flume
数据安全治理
网络安全,大数据,Java, 机器学习,
展开
-
Flume 常见配置zo
1. Source NetCat Source:绑定的端口(tcp、udp),将流经端口的每一个文本行数据作为Event输入; type:source的类型,必须是netcat。 bind:要监听的(本机的)主机名或者ip。此监听不是过滤发送方。一台电脑不是说只有一个IP。有多网卡的电脑,对应多个IP。 port:绑定的本地的端口。 Avro Source:监听一个avro服务端原创 2016-05-22 12:54:49 · 4277 阅读 · 0 评论 -
flume 简单案例 将一个节点的中一个日志文件的动态变化 在 另一个节点的终端输出
案例目标: 将flume3节点的中一个日志文件的动态变化 在 flume2节点的终端输出 案例总体设计: flume3节点的配置文件 # example.conf: A single-node Flume configuration # Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.c原创 2016-05-22 13:04:13 · 1601 阅读 · 0 评论 -
flume简单案例2 多个source一个sink
案例设计 flume3的配置文件 # Name the components on this agent a1.sources = r1 r2 r3 a1.sinks = k1 a1.channels = c1 # # Describe/configure the source a1.sources.r1.type = exec a1.sources.r1.command =原创 2016-05-22 13:08:12 · 11103 阅读 · 0 评论