Flume监听端口,输出端口数据案例
1、在flume目录下新建/myconf目录,并在目录下新建socket-console.conf 文件!mkdir myconfcd myconftouch socket-console.conf2、编辑文件vim socket-console.conf,添加以下内容:# 定义这个agent中各组件的名字a1.sources = r1a1.sinks = k1a1.channels = c1 # 描述和配置source组件:r1a1.sources.r1.type = netcat