hadoop2.x Source Code Compilation

Source: Internet
Author: User

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

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.