idea+centos+hadoop-2.7.3 Source Environment Construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.