java大数据hadoop2.9.2 Flume安装&操作

1、flume安装

(1)解压缩

tar -xzvf apache-flume-1.9.0-bin.tar.gz

rm -rf apache-flume-1.9.0-bin.tar.gz

mv ./apache-flume-1.9.0-bin/ /usr/local/flume

(2)配置

cd /usr/local/flume/conf

cp ./flume-env.sh.template ./flume-env.sh

vi flume-env.sh

添加Java路径

export JAVA_HOME=/usr/local/javajdk

vi /etc/profile

添加全局变量

FLUME_HOME=/usr/local/flume
export FLUME_HOME
PATH=$FLUME_HOME/bin:$PATH
export PATH

source /etc/profile

flume-ng -version

你可能感兴趣的:(java大数据,大数据,flume)