Blog
flume-02 安装配置
下载
http://flume.apache.org/download.html
安装
上传到服务器/opt/software/文件夹下
解压文件到/opt/mudole/文件夹下
tar -zxvf apache-flume-1.9.0-bin.tar.gz /opt/module/
重命名flume文件夹
mv apache-flume-1.9.0-bin flume
配置
复制flume/conf/flume-env.sh.template -> flume-env.sh
# 添加jdk路径
export JAVA_HOME=/opt/module/jdk1.8.0_261
删除冲突jar包
cd lib/
rm guava-11.0.2.jar
修改日志目录
vim conf/log4j.properties
flume.log.dir=/data/logs/flume
配置flume-env
mv flume-env.sh.template flume-env.sh
# 取消注释
export JAVA_OPTS="-Xms100m -Xmx2000m -Dcom.sun.management.jmxremote"