hadoop 2.4.1 64位编译
- 安装jdk
- 安装maven
sudo apt-get install maven
- 安装g++
sudo apt-get install g++
- 安装protobuf-2.5.0
下载解压 cd protobuf-2.5.0/,进行如下操作: sudo ./configure sudo make sudo make check sudo make install sudo ldconfig sudo nano /etc/profile export LD_LIBRARY_PATH=/opt/protobuf-2.5.0 source /etc/profile protoc --version
- 安装openssl
sudo apt-get install libssl-dev
- 安装CMake
sudo apt-get install cmake
- 安装ant
下载解压,配置环境变量 ANT_HOME/PATH 和安装jdk一样
- 编译hadoop
cd /opt/hadoop-2.4.1-src/ mvn package -Pdist,native -DskipTests -Dtar 编译大概要一个多小时
- 去hadoop-2.4.1-src/hadoop-dist/target下找文件:
hadoop-2.4.0.tar.gz
附录(要安装的东西备忘)
sudo apt-get install maven
sudo apt-get install protobuf-compiler
sudo apt-get install cmake
sudo apt-get install zlib1g.dev
sudo apt-get install g++
sudo apt-get install libglib2.0-dev
sudo apt-get install libssl-dev
时间: 2024-10-01 00:34:25