Flume configuration environment variables

Start configuring environment variables

Enter the /etc directory to modify the profile configuration file

[root@zjj101 etc]# pwd
/etc
[root@zjj101 etc]# vim profile


# 配置Flume 环境变量开始
export FLUME_HOME=/root/soft/apache-flume-1.7.0
export FLUME_CONF_DIR=$FLUME_HOME/conf
export FLUME_LOG_DIR=$FLUME_HOME/log
export PATH=$PATH:$FLUME_HOME/bin

# 配置Flume 环境变量结束

export PATH=$PATH:/root/soft/script
export PATH

Let the environment variables refresh

If you do not execute the following command, your newly configured environment variables will not take effect

[root@zjj101 etc]# source /etc/profile
[root@zjj101 etc]# 

Test whether Flume is configured with environment variables

flume-ng version

It has taken effect, and the version number is printed out.

[root@zjj101 etc]#  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

Guess you like

Origin blog.csdn.net/qq_41489540/article/details/109129614