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/
flume 安装
最新推荐文章于 2024-11-08 15:51:22 发布