Part I. 单节点上设置,
1. dump command
The command’s syntax is flume dump <source> [<outputformat>]. It prints data from<source> to the console. Optionally, an output format can be specified, otherwise the default text format is used.
if you want a text file where each line represents a new event, run the following command.
$ flume dump 'text("/etc/services")'
This command reads the file, and then outputs each line as a new event to console. console是默认的sink, 运行这个命令就自动进入console了。