centos6.5安装flume

前端之家收集整理的这篇文章主要介绍了centos6.5安装flume前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

这里安装flume是因为游戏业务日志搜集和分析用的@H_502_3@

1.安装java 环境@H_502_3@

rpm -ivh jdk-8u51-linux-x64.rpm@H_502_3@

Preparing... ########################################### [100%]@H_502_3@

1:jdk1.8.0_51 ########################################### [100%]@H_502_3@

Unpacking JAR files...@H_502_3@

rt.jar...@H_502_3@

jsse.jar...@H_502_3@

charsets.jar...@H_502_3@

tools.jar...@H_502_3@

localedata.jar...@H_502_3@

jfxrt.jar...@H_502_3@

plugin.jar...@H_502_3@

javaws.jar...@H_502_3@

deploy.jar...@H_502_3@

2. 下载flume@H_502_3@

wget http://www.apache.org/dist/flume/stable/apache-flume-1.6.0-bin.tar.gz@H_502_3@

解压@H_502_3@

tar -xf apache-flume-1.6.0-bin.tar.gz -C /usr/local/@H_502_3@

重命名目录@H_502_3@

mv apache-flume-1.6.0-bin flume@H_502_3@

3.修改环境变量@H_502_3@

vim /etc/profile@H_502_3@

exportJAVA_HOME=/usr/java/jdk1.8.0_51
exportJRE_HOME=/usr/java/jdk1.8.0_51/jre
exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
exportPATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:$JAVA_HOME/bin
exportFLUME_HOME=/usr/local/flume
exportPATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:$JAVA_HOME/bin:$FLUME_HOME/bin


@H_502_3@

4.让环境变量生效@H_502_3@

source /etc/profile@H_502_3@

5.测试@H_502_3@

flume-ng version@H_502_3@

Flume 1.6.0@H_502_3@

Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git@H_502_3@

Revision: 2561a23240a71ba20bf288c7c2cda88f443c2080@H_502_3@

Compiled by hshreedharan on Mon May 11 11:15:44 PDT 2015@H_502_3@

From source with checksum b29e416802ce9ece3269d34233baf43f@H_502_3@

猜你在找的CentOS相关文章