1.去官网下载Flume(使用Flume需安装jdk1.6以上版本)
2.解压后进入其根目录新建checkpoint和dataDi目录
3.进入conf目录,新建hdfs_sink.conf
agent.sources = r1
agent.channels = c1
agent.sinks = k1
agent.sources.r1.type = exec
agent.sources.r1.command = tail -f /opt/xfs/logs/tomcat/xfs-cs/logs/xfs_cs_1
agent.sources