标签:
##下载解压## [grid@hadoop4 ~]$ wget http://mirrors.cnnic.cn/apache/flume/1.5.2/apache-flume-1.5.2-bin.tar.gz [grid@hadoop4 ~]$ tar -zxf apache-flume-1.5.2-bin.tar.gz [grid@hadoop4 ~]$ mv apache-flume-1.5.2-bin flume-1.5.2 ##设置环境变量## [grid@hadoop4 ~]$ vim .bash_profile export FLUME_HOME=/home/grid/flume-1.5.2 export PATH=$PATH:$FLUME_HOME/bin [grid@hadoop4 ~]$ source .bash_profile ##设置配置文件## [grid@hadoop4 ~]$ cd flume-1.5.2/conf/ [grid@hadoop4 conf]$ cp flume-env.sh.template flume-env.sh [grid@hadoop4 conf]$ vim flume-env.sh JAVA_HOME=/usr/java/jdk1.7.0_72 JAVA_OPTS="-Xms100m -Xmx200m -Dcom.sun.management.jmxremote" ##安装完毕!##
标签:
原文地址:http://my.oschina.net/zc741520/blog/399269