tar -zxvf apache-flume-1.9.0-bin.tar.gz -C /opt/module
cd /opt/module/
mv apache-flume-1.9.0-bin/ flume
删除guava-11.0.2.jar,其与hadoop中的guava冲突
rm -rf ./flume/lib/guava-11.0.2.jar
vim ./flume/log4j.properties
#修改log保存地
flume.log.dir=/opt/module/flume/logs
如果对flume的memory channel有要求
mv ./flume/conf/flume-env.sh.template ./flume/conf/flume-env.sh
vim ./flume/conf/flume-env.sh
找到"export JAVA_OPTS="-Xms100m -Xmx2000m -Dcom.sun.management.jmxremote"去掉注释,进行修改
将Xmx最大内存调大