🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 1. 解压安装 1. 将apache-flume-1.9.0-bin.tar.gz上传到linux的/opt/software目录下 2. 解压apache-flume-1.9.0-bin.tar.gz到/opt/module/目录下 ``` tar -zxf /opt/software/apache-flume-1.9.0-bin.tar.gz -C /opt/module/ ``` 3. 修改apache-flume-1.9.0-bin的名称为flume ``` mv /opt/module/apache-flume-1.9.0-bin /opt/module/flume ``` 4. 将lib文件夹下的guava-11.0.2.jar删除以兼容Hadoop 3.1.3 ``` rm /opt/module/flume/lib/guava-11.0.2.jar ``` **注意:删除guava-11.0.2.jar的服务器节点,一定要配置hadoop环境变量。否则会报如下异常。** 5. 修改conf目录下的log4j.properties配置文件,配置日志文件路径 ``` flume.log.dir=/opt/module/flume/logs ``` ## 2. 分发Flume ``` /home/atguigu/bin/xsync flume/ ```