1. 程式人生 > >[Hadoop] CentOS7 安裝flume-ng-1.6.0-cdh5.7.0

[Hadoop] CentOS7 安裝flume-ng-1.6.0-cdh5.7.0

1. Flume 安裝部署

根據官方文件描述,市面上的Flume主流版本有兩個:0.9.x and 1.x。這兩個版本差異非常非常大,舊版本已經被淘汰了,要用的話就使用新版本。當然本文中既定版本為cdh的ng版本(flume-ng-1.6.0-cdh5.7.0)。

系統要求:

image

 下載安裝

#  下載解壓
[[email protected] software]$ wget http://archive.cloudera.com/cdh5/cdh/5/flume-ng-1.6.0-cdh5.7.0.tar.gz
[[email protected] software]$ tar -zxvf flume-ng-1.6.0-cdh5.7.0.tar.gz -C ~/app/

# 配置環境變數(使用root使用者)
[
[email protected]
~]# vi /etc/profile export FLUME_HOME=/home/hadoop/app/apache-flume-1.6.0-cdh5.7.0-bin export PATH=$FLUME_HOME/bin:$PATH [[email protected] ~]# source /etc/profile # 修改配置檔案 [[email protected] software]$ cd ~/app/apache-flume-1.6.0-cdh5.7.0-bin/ [[email protected] apache-flume-1.6.0-cdh5.7.0-bin]$ cp conf/flume-env.sh.template conf/flume-env.sh [
[email protected]
apache-flume-1.6.0-cdh5.7.0-bin]$ vi conf/flume-env.sh export JAVA_HOME=/usr/java/jdk1.8.0_45 # 驗證安裝完成 [[email protected] ~]$ flume-ng version Flume 1.6.0-cdh5.7.0 Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git Revision: 8f5f5143ae30802fe79f9ab96f893e6c54a105d1 Compiled by jenkins on Wed Mar 23 11:38:48 PDT 2016 From source with checksum 50b533f0ffc32db9246405ac4431872e [
[email protected]
~]$