macOS版本:Catalina 10.15.7
编译的意义在于可以跑单元测试、学习框架、二次开发等等
参考内容:https://github.com/apache/hadoop/blob/branch-3.2.4/BUILDING.txt
hadoop
Install Xcode Command Line Tools
xcode-select --install
Install tools
brew install autoconf automake cmake wget
Install native libraries, only openssl is required to compile native code,
you may optionally install zlib, lz4, etc.
brew install openssl
Protocol Buffers 2.5.0 (required), since 2.5.0 is no longer in Homebrew,
we need to compile it from source
wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
tar zxvf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure
make
make check
make install
protoc --version
jdk
直接下载并安装(https://www.oracle.com/java/technolo