1. installationJdk
refer to the installation of the JDK here.
2. installationFlume2.1. DownloadFlume
:http://flume.apache.org/download.html650) this.width=650; "Src=" https://s5.51cto.com/oss/201710/25/ Da9277a9d433278d21a9ccdef349d90a.png-wh_500x0-wm_3-wmp_4-s_3707767358.png "title=" 1.png "alt=" Da9277a9d433278d21a9ccdef349d90a.png-wh_ "/>
Click the link: apache-flume-1.7.0-bin.tar.gz download.
2.2. Unpacking the installation package
$ tar zxvf apache-flume-1.7.0-bin.tar.gz
2.3. to 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 Configuration2.5.1. Modify/etc/profilefile
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 the modification is complete to make the environment variable effective immediately:$ source/etc/profile
2.5.2. in theConfCreate and modify configuration files under directory
$ CP flume-conf.properties.template Flume-conf.properties
$ CP flume-env.sh.template flume-env.sh
Modify The flume-env.sh file
Set Java_home Environment Variables
Export JAVA_HOME=/SOFTWARE/JDK
2.6. ValidationFlumewhether the installation was successful
$ flume-ngversion
If successful, the following information 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 20:51:10 CEST 2016
From source with checksum 0d21b3ffdc55a07e1d08875872c00523
This article is from the "Technical Exchange" blog, please be sure to keep this source http://duanpeng.blog.51cto.com/1774713/1975911
Installation of Flume