1. Installing the JDK
2. Install the required libraries
sudo apt-get install g++ autoconf automake libtool make CMake zlib1g-dev pkg-config Libssl-dev
3. Sudo apt-get install openssh-client sudo apt-get install Openssh-server
-Go to the user directory to run the command:
-ssh-keygen-t rsa-p
-cat. Ssh/id_rsa.pub >>. Ssh/authorized_keys
-ssh-add ~/.ssh/id_rsa
-there is an. ssh folder in the user directory
4. Download the latest protobuf:https://code.google.com/p/protobuf/downloads/list can also be downloaded from Http://pan.baidu.com/s/1ntDuSid
Unzip into the directory and execute the command sequentially:
./configure--PREFIX=/USR
sudo make
sudo make check
sudo make install
Finally, you can check the version
Protoc--version
5. Sudo apt-get install MAVEN and set environment variables
6. Download the Hadoop source package, where the hadoop-2.3.0 version is selected, and the other 2.6.0 versions have also been tested.
Unzip into the directory to run MVN Package-pdist,native-dskiptests-dtar
Final Build:
To see the resulting compressed file under Hadoop-2.3.0-src/hadoop-dist/target
7. hadoop-2.6.0 Build Eclipse Project
-After decompression, enter hadoop-2.6.0 's src directory and execute: MVN eclipse:eclipse–dskiptests
-After execution completes, open eclipse,import the project to
ubutun14.04 compile hadoop-2.6.0 source code and build Eclipse project