I am very interested in Hadoop recently. The following is a compilation on the CentOS system.
The system conditions are as follows:
1. CentOS 6.2 64-bit
2. hadoop-2.2.0
3. jdk 1.6.0 _ 31
4. maven 3.1.0
5. protobuf-2.5.0
6. cmake 2.8.12.1
JDK has been installed in the system and is correctly set. The installation and settings of JDK are not described here. Please refer
Step 1: Install maven
1.1 download file apache-maven-3.1.0-alpha-1-bin.tar.gz
1.2 execute the command tar zvxf apache-maven-3.1.0-alpha-1-bin.tar.gz
1.3 configure environment variables, edit the etc/profile file, and add the following code
MAVEN_HOME=/home/youUser/apache-maven-3.1.0-alpha-1PATH=$MAVEN_HOME/bin:$PATHexport MAVEN_HOMEexport PATH
1.4 save the file and run the following command to make the environment variable take effect
source /etc/profile
1.5 run the following command to check whether the installation is normal:
mvn -version
Step 2: Install protobuf
2.1 Download file protobuf-2.5.0.tar.gz
2.2 execute the command tar zvxf protobuf-2.5.0.tar.gz
2.3 Go To The protobuf-2.5.0 directory and execute the following command
./Configure
| [Content navigation] |
| Page 1: Compilation |
Page 1: Configuration |
| Page 1: the first program |
Page 1: run a real MapReduce Program |
| Page 1: Real Distributed System Construction |
|