Installation and deployment of flume

System environment: centos7.5 64-bit system

1. Download the installation package

Download the offline installation package from the official website: apache-flume-1.8.0-bin.tar.gz

It can also be downloaded using the linux command:

wget -c http://mirrors.tuna.tsinghua.edu.cn/apache/flume/1.8.0/apache-flume-1.8.0-bin.tar.gz

2. Unzip

Unzip the compressed package and put it in the specified directory. My complete directory here is: /home/hadoop/runtime/apache-flume-1.8.0-bin/

3. Configure environment variables

vi /etc/profile Open the profile file and append the following text

#FLUME WARIABLES START
export FLUME_HOME=/home/hadoop/runtime/apache-flume-1.8.0-bin
export PATH=$PATH:$FLUME_HOME/bin
#FLUME WARIABLES END

source /etc/profile

4. Enter the following command to view the version

flume-ng version

If you see the following output information, the installation is successful:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324848623&siteId=291194637