CentOS 64-bit under hadoop-2.7.2 compilation
As the machine installs the CentOS 6.7 64-bit system downloaded from Hadoop is the 32-bit Hadoop-dependent library that libhadoop.so is 32-bit required to recompile.
Here is the procedure for compiling
1 Installing the jdk
1.1 Download JDK
1.2 Unpacking the JDK
1.3 Configuring Environment variables
1.3.1 Command
1.3.2 Modifying environment variables
Add a display at the end of a file
1.4 Viewing versions with commands
2 Libraries required for installation
2.1 Commands
2.2 Second Installation
3 Install protobuf-2.5.0.tar.gz (version must be 2.5.0)
3.1
3.2 to unzip him.
3.3 Execute Command
3.4 Execute Command
Make
3.5 Execute Command
3.6 Verifying that the installation is complete
4 installing maven
4.1 Downloads
4.2 Decompression
4.3 Configuring environment variables
4.4 Verifying the installation is successful
5 installing ant
5.1 Downloads Ant
5.2 Extracting Ant
TAR–ZXVF Apache-ant-1.9.4–c/usr/app
5.3 Configuring environment variables
5.4 Check if the installation was successful
5.4.1 Show here that the JDK suddenly shows the native version of the machine (I'm embarrassed) there was a problem with the environment variable (a small episode)
Use the following command to switch the installed JDK
6 Installing findbugs
6.1 Downloads FindBugs
6.2 Decompression
6.3 Adding environment variables
6.4 Check if the installation is successful
7. Recompile Hadoop
7.1 Switch to HADOOP-2.7.2-SRC source path
7.2 To compile (wait a long time)
Execute command MVN Package-pdist,native-dskiptests–dtar
Show Compilation Successful
7.3 Hints
If it is not compiled successfully, it is purged with the MVN Clean command after the compilation
CentOS 64-bit under hadoop-2.7.2 compilation