Centos6.4 install flume

Source: Internet
Author: User
Tags logstash
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.