Installation of Flume
1. Install JDK
Refer to the installation of jdk, briefly here.
two。 Install Flume2.1. Download Flume
Download address: http://flume.apache.org/download.html
Click the link: apache-flume-1.7.0-bin.tar.gz download.
2.2. Extract the installation package
$tar zxvf apache-flume-1.7.0-bin.tar.gz
2.3. Move the installation files to the installation directory
$cp-rapache-flume-1.7.0-bin / software/
2.4. Create a soft link
$cd / software/
$ln-sapache-flume-1.7.0-bin/ flume
2.5. Environment variable configuration 2.5.1. Modify / etc/profile file
Export FLUME_HOME=/software/flume
Export PATH=$FLUME_HOME/bin:$ZOOKEEPER_HOME/bin:$HBASE_HOME/bin:$HIVE_HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH
Export CLASSPATH=.:$FLUME_HOME/lib/*:$HBASE_HOME/lib/*:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Restart the configuration after modification so that the environment variable takes effect immediately: $source / etc/profile
2.5.2. Create and modify configuration files in the conf directory
$cp flume-conf.properties.template flume-conf.properties
$cp flume-env.sh.template flume-env.sh
Modify the flume-env.sh file
Set the JAVA_HOME environment variable
Export JAVA_HOME=/software/jdk
2.6. Verify that Flume is installed successfully
$flume-ngversion
If successful, the following message appears, otherwise it is unsuccessful.
Flume 1.7.0
Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git
Revision: 511d868555dd4d16e6ce4fedc72c2d1454546707
Compiled by bessbd on Wed Oct 12 20:51:10 CEST 2016
From source with checksum 0d21b3ffdc55a07e1d08875872c00523