Flume 采集发送消息到kafka
一些场景需要采集文本内容发送到kafka,flume正好提供了这种解决方案 Flume agent脚本及配置如下 Mac 安装: brew install flume 启动脚本: nohup /usr/local/Cellar/flume/1.9.0/bin/flume-ng agent --conf /data/flume/run/flume/conf/conf.d/ --conf-file /data/flume/run/flume/conf/conf.d/mg-res_test.conf --name mg-res_test -Dflume.codeadmin.logger=INFO,console & linux 安装: http://flume.apache.org/download.html 启动脚本: nohup /data/flume/run/flume/bin/flume-ng agent --conf /data/flume/run/flume/conf/conf.d/ --conf-file /data/flume/run/flume/conf/conf.d/mg-res_test.conf --name mg-res_test -Dflume.codeadmin.logger=INFO,console & 配置说明 /data/flume/run/flume