1. 环境准备
查看 Hadoop-3.2.1-src/BUILDING.txt:
1.1 安装JDK 1.8
1.2 准备Apache Maven 3.6.0
下载;
修改conf;
修改/etc/profile配置环境变量
export M2_HOME=/opt/apache-maven-3.6.3 export PATH=$PATH:$M2_HOME/bin
1.3 下载ProtocolBuffer 2.5.0
下载路径: https://github.com/protocolbuffers/protobuf/releases/tag/v2.5.0
解压: tar -zxf
编译安装:
(1)进入proto解压目录
(2)执行:./configure
(3)执行: make && make install
验证:
protoc —version
1.4 安装cmake
参考文章:https://www.jianshu.com/p/d83535e9de13
查看是否已经安装:cmake —version
官网下载:https://cmake.org/download/
wget -c https://github.com/Kitware/CMake/releases/download/v3.17.0-rc3/cmake-3.17.0-rc3.tar.gz tar zxvf cmake-3.17.0-rc3.tar.gz cd cmake-3.17.0-rc3
./bootstrap
gmake
gmake install
1.5 安装zlib
查看是否已经安装:whereis zlib
官网下载:http://rpmfind.net/linux/rpm2html/search.php?query=zlib-devel
rpm安装:rpm -ivh zlib-devel-1.2.7-18.el7.x86_64.rpm
1.6 Cyrus SASL
官网下载: https://github.com/cyrusimap/cyrus-sasl/releases
官网教程:https://www.cyrusimap.org/sasl/sasl/installation.html#installation-quick
1.7 安装bats
参考文章:https://github.com/sharkdp/bat/issues/325
下载地址:https://github.com/sharkdp/bat/releases
