Specific directory specifications, such as:
/opt/modules # Installation path for large software
/opt/softwares # Software source program installation package upload path
/opt/tools # Tool Installation path
/opt/datas #数据文件存放路径
1. MAVEN's installation
A. Creating Maven in the/opt/modules directory
B. Compress the apache-maven-3.0.5.tar.gz level into the/opt/maven/modules/maven
C. Configuring environment variables, # sudo vi/etc/profile
D. Verifying environment variables
2. Download the Hadoop source package, upload to the/opt/softwares directory, unzip to/opt/modules/hadoop
#tar-ZXVF hadoop-2.5.0-src.tar-c/opt/modules/hadoop
3. Use Maven to compile, first install some dependencies, Protobuffer
A precompiled error was found
Precompile the #sudo again./configure--prefix=/usr/local/protoc
Installation
Configuring the PROTOC environment variable/USR/LOCAL/PROTC
View
Verify #sudo VI Teacherproto.proto
The Teacherproto.java is found to be generated.
4. Install other dependencies
#sudo yum-y Install Openssl-devel ncurses-devel cmake
5. Compiling hadoop2.x
5. Change the Yum source to a aliyum image. Http://mirrors.aliyun.com/help/centos
A. Script First #vim update_yum_toali.sh
B. Writing a document
C. Implementation of the document
D. Updating the local cache
hadoop2.x Source Code Compilation