紧接我的上一篇博客 分布式日志收集框架Flume环境安装部署
这里开始实践,讲一下flume的应用案例
从指定网络端口采集数据输出到控制台
还是先参考一下万能的官网
https://flume.apache.org/FlumeUserGuide.html
a1:agent名称
r1:数据源的名称
k1:sink的名称
c1:channel的名称
example.conf
#Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
#Describe/configure the source
a1.sources.r1.type