flume 安装

vi /etc/profile
export FLUME_HOME=/usr/local/hadoop/flume/apache-flume-1.5.0-bin
export FLUME_CONF_DIR=$FLUME_HOME/conf
export PATH=$PATH:$FLUME_HOME/bin
source /etc/profile

[root@name01 hadoop]# mkdir flume
[root@name01 hadoop]# cd flume/
[root@name01 flume]# pwd
/usr/local/hadoop/flume
[root@name01 flume]# ls
apache-flume-1.5.0-bin  apache-flume-1.5.0-bin.tar.gz
[root@name01 flume]# cd apache-flume-1.5.0-bin
[root@name01 apache-flume-1.5.0-bin]# pwd
/usr/local/hadoop/flume/apache-flume-1.5.0-bin
[root@name01 apache-flume-1.5.0-bin]# echo $JAVA_HOME
/usr/local/jdk
[root@name01 apache-flume-1.5.0-bin]# 


[root@name01 flume]# ls
apache-flume-1.5.0-bin  apache-flume-1.5.0-bin.tar.gz
[root@name01 flume]# cd apache-flume-1.5.0-bin
[root@name01 apache-flume-1.5.0-bin]# pwd
/usr/local/hadoop/flume/apache-flume-1.5.0-bin
[root@name01 apache-flume-1.5.0-bin]# vi /etc/profile
[root@name01 apache-flume-1.5.0-bin]# vi /etc/profile 
[root@name01 apache-flume-1.5.0-bin]# source /etc/profile 
[root@name01 apache-flume-1.5.0-bin]# ls
bin  CHANGELOG  conf  DEVNOTES  docs  lib  LICENSE  NOTICE  README  RELEASE-NOTES  tools
[root@name01 apache-flume-1.5.0-bin]# cd conf/
[root@name01 conf]# ls -l
total 12
-rw-r--r-- 1 501 games 1661 Mar 28  2014 flume-conf.properties.template
-rw-r--r-- 1 501 games 1197 Mar 28  2014 flume-env.sh.template
-rw-r--r-- 1 501 games 3063 Mar 28  2014 log4j.properties
[root@name01 conf]# cp flume-env.sh.template flume-env.sh
[root@name01 conf]# pwd
/usr/local/hadoop/flume/apache-flume-1.5.0-bin/conf
[root@name01 conf]# ls -l
total 16
-rw-r--r-- 1  501 games 1661 Mar 28  2014 flume-conf.properties.template
-rw-r--r-- 1 root root  1197 Jun 13 05:37 flume-env.sh
-rw-r--r-- 1  501 games 1197 Mar 28  2014 flume-env.sh.template
-rw-r--r-- 1  501 games 3063 Mar 28  2014 log4j.properties
[root@name01 conf]# vi flume-env.sh --修改 flume-env.sh 配置文件,主要是JAVA_HOME变量设置
[root@name01 conf]# flume-ng version
Flume 1.5.0
Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git
Revision: 8633220df808c4cd0c13d1cf0320454a94f1ea97
Compiled by hshreedharan on Wed May  7 14:49:18 PDT 2014
From source with checksum a01fe726e4380ba0c9f7a7d222db961f
[root@name01 conf]# 

http://idoall.org/blog/post/lion/4#title-11
http://idoall.org/blog/post/lion/4#title-11

http://blog.itpub.net/28624388/viewspace-1289937/
http://blog.itpub.net/28624388/viewspace-1289937/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

5icode.top

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值