Recently, an ELK architecture is used for log collection. the intermediate data collection is changed from logstash to flume. The following is the installation of flume: because flume and Elasticsearch are both developed in java, so the java is deployed before installation, ES does not support java1.7, because there is a major bug, so choose jdk-8u51-linux-x64.rpm. Installation Path packages, es not supported
Recently, an ELK architecture is used for log collection. the intermediate data collection is changed from logstash to flume. Install flume as follows:
Because flume and Elasticsearch are both developed in java, so the java is deployed before installation, ES does not support java 1.7, because there is a major bug, so choose jdk-8u51-linux-x64.rpm.
The installation path packages. es does not support jdk 1.7 and has a major bug.
[Root @ bogon ~] # Rpm-ivh jdk-8u51-linux-x64.rpm
Preparing... ######################################## ### [100%]
1: jdk ####################################### #### [100%]
Unpacking JAR files...
Rt. jar...
Jsse. jar...
Charsets. jar...
Tools. jar...
Localedata. jar...
Jfxrt. jar...
Modify environment variables:
[Root @ bogon ~] # Vim/etc/profile
Add the following code to the last line:
Export JAVA_HOME =/usr/java/jdk1.8.0 _ 51
Export JRE_HOME =/usr/java/jdk1.8.0 _ 51/jre
ExportCLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export PATH = $ PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin: $ JAVA_HOME/bin
Ghost, download from the official website, and do not post the address here.
[Root @ bogon ~] # Tar zxf apache-flume-1.6.0-bin.tar.gz
[Root @ bogon ~] # Tar zxf apache-flume-1.6.0-src.tar.gz
[Root @ bogon ~] # Mv apache-flume-1.6.0-bin/usr/local/flume
[Root @ bogon ~] # Cp-ri apache-flume-1.6.0-src/usr/local/flume/
Modify environment variables:
[Root @ bogon ~] # Vim/etc/profile
Add the following code to the last line:
Export FLUME_HOME =/usr/local/flume
Export PATH = $ PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin: $ JAVA_HOME/bin: $ FLUME_HOME/bin
[Root @ bogon ~] # Source/etc/profile
Test
[Root @ bogon ~] # Flume-ng version
Flume 1.6.0
Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git
Revision: 2561a23240a71ba20bf288c7c2cda88f443c2080
Compiled by hshreedharan on Mon May 11 11:15:44 PDT 2015
From source with checksum b29e416802ce9ece3269d34233baf43f
OK. the installation of flume is complete.