idea+centos7+hadoop-2.7.3 Source Reading Environment construction
1. Environmental preparedness
- Installing Maven 3.5.4:http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.4/binaries/
-
Installing protocol Buffers 2.5.0
1) Download protobuf-2.5.0.tar.gz,:http://pan.baidu.com/s/1pjlzubt (user provided)
2) Unzip:
tar -zxvf protobuf-2.5.0.tar.gz
3) Compile the installation, assuming that the output directory after successful compilation is:/usr/local/protobuf
./configure --prefix=/usr/local/protobufmake && make install
4) export PATH=/usr/local/protobuf/bin:$PATH added to environment variables after successful compilation
Use protoc --version to verify whether the compilation installation was successful
- Installing JDK 1.80
2. Compiling Hadoop source code
1) Unzip:tar -zxvf hadoop-2.7.3-src.tar.gz
2)cd hadoop-2.7.3-src
3) Compile the source code using the following command
mvn package -Pdist -DskipTests -Dtar
4) Wait for a lengthy compilation process, compile success information as follows:
3. Using idea to import Hadoop source code
Select the source directory you just compiled
Next, click Next.
idea+centos+hadoop-2.7.3 Source Environment Construction