Flume安装与配置
1.下载安装文件
下载Flume安装文件apache-flume-1.7.0-bin.tar.gz,保存到“/export/software/”目录下。
下载完安装文件以后,需要对文件进行解压。
sudo tar -zxvf ./apache-flume-1.7.0-bin.tar.gz -C /export/server
修改文件名
cd /export/server/
mv apache-flume-1.7.0-bin/ flume
2.配置环境变量
配置环境变量文件
vim /etc/profile
设置ZooKeeper环境变量
#set Flume environment
export FLUME_HOME=/export/server/flume
export FLUME_CONF_DIR=$FLUME_HOME/conf
export PATH=$PATH:$FLUME_HOME/bin
保持退出后刷新环境变量
source /etc/profile
3.flume-env.sh
修改配置文件flume-env.sh
命令如下:
cd /export/server/flume/conf
sudo mv flume-env.sh.template flume-env.sh
sudo vim flume-env.sh
在flume-env.sh文件开头加入如下语句:
export JAVA_HOME=/export/server/jdk1.8.0_333
启动Flumecd
执行如下语句启动Flume:
cd /export/server/flume
./bin/flume-ng version
标签:Flume,flume,配置,server,sh,export,env,安装
From: https://www.cnblogs.com/yuangyaa/p/16843980.html