Linux compiled hadoop2.4.1 source code

Source: Internet
Author: User

Tip: It is best to compile under a 64-bit operating system. Virtual machine memory not less than 2G, hard disk space is not less than 10G

Install Google's protobuf first

Yum Install Glibc-headers
Yum install gcc yum install gcc-c++ yum install make
Yum install cmake yum install openssl-devel yum install Ncurses-devel
Tar zxvf protobuf-2.5.0.tar.gz
CD protobuf-2.5.0 &&./configure && make && make check && make install

Then install maven-3.0.5

Configure environment variable M2_home to maven path

Then path Plus: $M 2_home/bin

Download HADOOP-2.4.1-SRC

After decompression, perform mvn clean package-dskiptests-pdist,native
Compile.

Note: Clean clears the build environment, package compiles, dskiptests skips tests,

After compiling, under Hadoop-dist, target directory ~

Linux compiled hadoop2.4.1 source code

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.