一、安装
一、安装
1.1 下载解压
从官方下载Apache Flume
[hadoop@node01 opt]$ sudo wget https://dlcdn.apache.org/flume/1.11.0/apache-flume-1.11.0-bin.tar.gz
[hadoop@node01 opt]$ sudo tar -xzf apache-flume-1.11.0-bin.tar.gz
[hadoop@node01 opt]$ sudo ln -s apache-flume-1.11.0-bin flume
2.2 配置
- 修改
/opt/flume/conf/log4j2.xml
<Property name="LOG_DIR">/opt/flume</Property>
- 调整
flume-env.sh
[hadoop@node01 flume]$ mv /opt/flume/conf/flume-env.sh.template /opt/flume/conf/flume-env.sh