ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1. 下载地址:http://archive.apache.org/dist/flume/1.8.0/apache-flume-1.8.0-bin.tar. gz 2. 上传到Linux 3. 解压 ```shell -- 解压 tar zxvf apache-flume-1.8.0-bin.tar.gz -C /opt/install/ -- 创建软连接 ln -s apache-flume-1.8.0-bin flume ``` 4. 在{FLUME_HOME}/conf/flume-env.sh中配置jdk环境 ```shell -- 复制flume-env.sh.template并命名为flume-env.sh cp flume-env.sh.template flume-env.sh vim flume-env.sh 添加jdk环境: export JAVA_HOME=/usr/local/software/jdk1.8.0_171 ``` 5. 为flume配置环境变量 ```shell vim /etc/profile 添加如下内容: export FLUME_HOME=/opt/install/flume export PATH=$FLUME_HOME/bin:$PATH -- 使用环境变量生效 source /etc/profile ``` 6. 检查是否安装成功 ```shell [root@hadoop101 flume]# ./bin/flume-ng version Flume 1.8.0 Source code repository: https://git-wip-us.apache.org/repos/asf/flume.git Revision: 99f591994468633fc6f8701c5fc53e0214b6da4f Compiled by denes on Fri Sep 15 14:58:00 CEST 2017 From source with checksum fbb44c8c8fb63a49be0a59e27316833d ``` 出现上面的信息则安装成功。