flume-ng demo单机配置详解

来源:互联网 发布:淘宝网注册账号申请 编辑:程序博客网 时间:2024/05/29 17:42

http://rjhym.blog.163.com/blog/static/28130232201263042013972/

https://cwiki.apache.org/confluence/display/FLUME/Getting+Started

# example.conf: A single-node Flume configuration# Name the components on this agentagent1.sources = source1agent1.sinks = sink1agent1.channels = channel1# Describe/configure source1agent1.sources.source1.type = netcatagent1.sources.source1.bind = localhostagent1.sources.source1.port = 44444# Describe sink1agent1.sinks.sink1.type = logger# Use a channel which buffers events in memoryagent1.channels.channel1.type = memoryagent1.channels.channel1.capacity = 1000agent1.channels.channel1.transactionCapactiy = 100# Bind the source and sink to the channelagent1.sources.source1.channels = channel1agent1.sinks.sink1.channel = channel1

启动命令:

bin/flume-ng agent --conf ./conf/ -f conf/flume.conf -Dflume.root.logger=DEBUG,console -n agent1

启动后:
这里写图片描述
另起一个窗口
这里写图片描述
这里写图片描述

0 0
原创粉丝点击