* 解压jdk
```
[bizzbee@spark software]$ tar -zxvf jdk-8u221-linux-x64.tar.gz -C ~/app
```
* 配置到环境变量
```
[bizzbee@spark ~]$ sudo vim .bash_profile
export JAVA_HOME=/home/bizzbee/app/jdk1.8.0_221
export PATH=$JAVA_HOME/bin:$PATH
[bizzbee@spark ~]$ source .bash_profile
```
* 解压flume
```
tar -zxvf flume-ng-1.6.0-cdh5.7.0.tar.gz -C ~/app
```
* 配置到环境变量
```
export FLUME_HOME=/home/bizzbee/app/apache-flume-1.6.0-cdh5.7.0-bin
export PATH=$FLUME_HOME/bin:$PATH
//source
```
* /home/bizzbee/app/apache-flume-1.6.0-cdh5.7.0-bin/conf
* flume-env.sh配置JAVA_HOME
```
export JAVA_HOME=/home/bizzbee/app/jdk1.8.0_221
```