flume event简介:
flume –> source : source的种类
最常见的就是taildrr source 和kafka source。
flume channel :
flume sink
flume 基本结构:
flume 特性:
1:下载flume: wget http://www.apache.org/dyn/closer.lua/flume/1.8.0/apache-flume-1.8.0-bin.tar.gz
2:解压 :tar -zxf
3: 重命名 : mv
4: 启动命令:bin/flume-ng agent –conf conf –conf-file conf/flume-conf.properties –name agent
一:netcat 方式启动,控制台打印
flume-conf-netsrc.properties配置
agent.sources = netSrc
agent.channels = memoryChannel
agent.sources.netSrc.type = netcat
agent.sources.netSrc.bind = 0.0.0.0
agent.sources.netSrc.port = 30966
agent.sources.netSrc.channels = memoryChannel
启动命令:./bin/flume-ng agent --conf conf --conf-file conf/flume-conf-netsrc.properties --name agent -Dflume.root.logger=INFO,console
使用telnet 命令: telnet localhost 30966
返回窗口查看,