你要安装好flume
进入conf目录下
vi 或者 vim vi flume-poll.conf 修改配置文件
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
# 修改这里,type是你连接的类型,port是你连接的端口,可以改,但是nc端口时要一样
a1.sources.r1.type = netcat
a1.sources