http://flume.apache.org/FlumeUserGuide.htmlhtml
1.安裝JDKjava
配置JAVA_HOME [root@hftest0001 opt]# cat /etc/profile ... export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera export PATH=$JAVA_HOME/bin:$PATH ... [root@hftest0001 opt]# java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
2.下載Flumeshell
[root@hftest0001 opt]# wget [root@hftest0001 opt]# tar -zxvf apache-flume-1.6.0-bin.tar.gz
3.Flume配置
apache
能夠配置FLUME_HOME環境變量,我配置了 [root@hftest0001 apache-flume-1.6.0-bin]# cat /etc/profile ... export FLUME_HOME=/opt/apache-flume-1.6.0-bin export PATH=$FLUME_HOME/bin:$PATH ... [root@hftest0001 conf]# pwd /opt/apache-flume-1.6.0-bin/conf [root@hftest0001 conf]# cp flume-env.sh.template flume-env.sh [root@hftest0001 conf]# vi flume-env.sh ... ... # export JAVA_HOME=/usr/lib/jvm/java-6-sun export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera ... [root@hftest0001 conf]# vi log4j.properties ... ... flume.root.logger=DEBUG,console #flume.root.logger=INFO,LOGFILE ...