当前位置:网站首页>Download and install flume

Download and install flume

2022-06-26 00:55:00 Prosperity is like love

  Get into Flume Official website https://flume.apache.org/download.html
 Insert picture description here
 Insert picture description here
  After downloading, put it in linux Any directory in
 Insert picture description here

  I put the compressed package in /tmp Under the table of contents
  stay /tmp Unzip the package under the directory , And specify that the extracted file be placed in /opt Under the table of contents

tar -xvf apache-flume-1.10.0-bin.tar.gz /opt

 Insert picture description here

rename mv apache-flume-1.10.0-bin flume110

 Insert picture description here
  Find the installation first jdk route echo $JAVA_HOME   Copy /usr/local/java/jdk1.8.0_151 , Your may be different

 Insert picture description here
modify Flume To configure

[[email protected] opt]# cd /opt/flume110/conf
[[email protected] conf]# mv flume-env.sh.template flume-env.sh

 Insert picture description here
modify flume-env.sh file

 vi flume-env.sh

stay flume-env.sh add to

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

 Insert picture description here
Configure environment variables

vi /etc/profile
FLUME_HOME=/opt/flume110
export PATH=$JAVA_HOME/bin:$PATH:$FLUME_HOME/bin
export HADOOP_HOME ZOOKEEPER_HOME FLUME_HOME

 Insert picture description here
  Refresh environment variable

 source /etc/profile

  test , Input flume-ng version
 Insert picture description here

原网站

版权声明
本文为[Prosperity is like love]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206252242441204.html