Compile hadoop-2.5.0 under centos6.5 (64bit)

Source: Internet
Author: User

Prepare the compilation environment:

1Install cmake:

Sudo wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz

# Tar-zxvf cmake-2.8.12.2.tar.gz

# Cd cmake-2.8.12.2

#./Configure

# Gmake

# Gmake install

2Install protobuf:

Protobuf-2.5.0.tar.gz

Tar-xvf protobuf-2.5.0.tar.bz2

CD protobuf-2.5.0

./Configure

Make & make install

Protoc -- version (if the version number is correctly displayed, the installation is correct)

3Install Maven:

Apache-maven-3.0.5-bin.tar.gz

Export maven_home =/opt/maven3.0.5

Export Path = $ path: $ maven_home/bin

Export classpath =.: $ classpath: $ maven_home/lib

4Install findbugs(Select)

Tar-zxfv Co., findbugs-2.0.2.tar.gz.

Music findbugs-2.0.2 // usr/local/findbugs

5Install the following dependencies:

Yum install gcc

Yum install gcc-C ++

Yum install make

Yum install OpenSSL-devel

Yum install ncurses-devel

6,Compile:

Go to hadoopSource package location:

MVN clean-dskiptests

MVN package-pdist, native-dskiptests-dtar

Compile hadoop-2.5.0 under centos6.5 (64bit)

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.