Sequence Generator Source本质上是一个序列产生器,会从0开始依次递增。实际过程中,经常使用这个Souce来测试流动模型是否搭建成功。递增到的最大值为Long.MAX_VALUE
编辑格式文件 vim secsource.conf
a1.sources= s1
a1.sinks= k1
a1.channels= c1
// 配置sources
a1.sources.s1.type = seq
a1.sources.s1.channels = c1
a1.sources.s1.totalEvents = 10
// 配置sinks
a1.sinks.k1.type= logger
a1.sinks.k1.channel= c1
// 配置channel
a1.channels.c1.type= memory
flume-ng agent -c $FLUME_HOME/conf -n a1 -f $FLUME_HOME/secsource.conf -Dflume.root.logger=INFO,console
结果