A)配置Source
B)配置Channel
C)配置Sink
B)配置Channel
C)配置Sink
D)把以上三个组件串起来
变量:
a1:agent名称
r1:source的名称
k1:sink的名称
c1:channel的名称
#以下为配置文件,在这里我的配置文件路径为$FLUME_HOME/conf /example.conf
#即将下面的配置代码放到examle.conf里面
# Name the components on this agent
a1.sources = r1
a1.sinks &