Centos6.5 install flume, centos6.5flume

Source: Internet
Author: User

Centos6.5 install flume, centos6.5flume

Flume is installed here because it is used for game Business Log collection and analysis.

1. Install the java environment
Rpm-ivh jdk-8u51-linux-x64.rpm
Preparing... ######################################## ### [100%]
1: jdk1.8.0 _ 51 ##################################### ###### [100%]
Unpacking JAR files...
Rt. jar...
Jsse. jar...
Charsets. jar...
Tools. jar...
Localedata. jar...
Jfxrt. jar...
Plugin. jar...
Javaws. jar...
Deploy. jar...

2. Download flume
Wget http://www.apache.org/dist/flume/stable/apache-flume-1.6.0-bin.tar.gz
Extract
Tar-xf apache-flume-1.6.0-bin.tar.gz-C/usr/local/
Rename a directory
Mv apache-flume-1.6.0-bin flume

3. Modify Environment Variables

export JAVA_HOME=/usr/java/jdk1.8.0_51export JRE_HOME=/usr/java/jdk1.8.0_51/jreexportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:$JAVA_HOME/binexport FLUME_HOME=/usr/local/flumeexport PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:$JAVA_HOME/bin:$FLUME_HOME/bin

4. Make the environment variables take effect

Source/etc/profile

 

5. Test

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

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.