flume 安装过程记录
1、安装jdk
2、下载安装包 : apache-flume-1.7.0-bin.tar.gz
安装包是在win下载的,需要拖动到ubuntu下的/home/hadoop (拖动不了需要先安装 lrzsz: sudo apt-get install lrzsz)
3、在 /home/hadoop/ 下解压安装包:
tar -zxvf apache-flume-1.8.0-bin.tar.gz
如果不想安装在这个路径下,也可以: mv apache-flume-1.7.0-bin/ /flume_your_location
4、修改配置
先copy一份:
hadoop@bleach:~/apache-flume-1.7.0-bin/conf$ cp flume-env.sh.template flume-env.sh
再修改JAVA_HOME:(可以echo $JAVA_HOME查看此变量的值)
hadoop@bleach:~/apache-flume-1.7.0-bin/conf$ vim flume-env.sh
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
5、查看是否安装成功:
运行 :
/home/hadoop/apache-flume-1.7.0-bin/bin/flume-ng version
出现以下说明安装成功:
Flume 1.7.0 Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git Revision: 511d868555dd4d16e6ce4fedc72c2d1454546707 Compiled by bessbd on Wed Oct 12 20:51:10 CEST 2016 From source with checksum 0d21b3ffdc55a07e1d08875872c00523