flume1.9.0的安装

2.1 flume的安装

flume的tar包下载地址: http://flume.apache.org/download.html

2.1.1上传flume的tar包

flume1.9.0的安装_第1张图片

 

2.1.2解压

[root@meboth-master opt]# tar -zxvf   ./installsoftpackagedir/apache-flume-1.9.0-bin.tar.gz  -C /opt/bigdatabyjurf/

2.1.3修改包名

[root@meboth-master bigdatabyjurf]# mv apache-flume-1.9.0-bin   flume-1.9.0

2.1.4 配置flume的文件

[root@meboth-master conf]# mv flume-env.sh.template  flume-env.sh

[root@meboth-master conf]# vim flume-env.sh

配置内容如下:

export JAVA_HOME=/usr/local/java/jdk1.8.0_171/

export JAVA_OPTS="-Xms100m -Xmx2000m -Dcom.sun.management.jmxremote"

flume1.9.0的安装_第2张图片

2.1.5 配置环境变量

Vim   /etc/profile;

#flume

export FLUME_HOME=/opt/bigdatabyjurf/flume-1.9.0

export FLUME_CONF_DIR=$FLUME_HOME/conf

export PATH=$PATH:$FLUME_HOME/bin

flume1.9.0的安装_第3张图片

使配置作用生效:

Source     /etc/profile

2.1.6 查看配置效果

[root@meboth-master conf]# flume-ng version

Flume 1.9.0

Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git

Revision: d4fcab4f501d41597bc616921329a4339f73585e

Compiled by fszabo on Mon Dec 17 20:45:25 CET 2018

From source with checksum 35db629a3bda49d23e9b3690c80737f9

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