ubutun14.04 compile hadoop-2.6.0 source code and build Eclipse project

Source: Internet
Author: User

1. Installing the JDK

  

2. Install the required libraries

sudo apt-get install g++ autoconf automake libtool make CMake zlib1g-dev pkg-config Libssl-dev

  

3. Sudo apt-get install openssh-client sudo apt-get install Openssh-server

-Go to the user directory to run the command:

-ssh-keygen-t rsa-p

-cat. Ssh/id_rsa.pub >>. Ssh/authorized_keys

-ssh-add ~/.ssh/id_rsa

-there is an. ssh folder in the user directory

4. Download the latest protobuf:https://code.google.com/p/protobuf/downloads/list can also be downloaded from Http://pan.baidu.com/s/1ntDuSid

Unzip into the directory and execute the command sequentially:

./configure--PREFIX=/USR

sudo make

sudo make check

sudo make install

Finally, you can check the version

Protoc--version

5. Sudo apt-get install MAVEN and set environment variables

6. Download the Hadoop source package, where the hadoop-2.3.0 version is selected, and the other 2.6.0 versions have also been tested.

Unzip into the directory to run MVN Package-pdist,native-dskiptests-dtar

Final Build:

To see the resulting compressed file under Hadoop-2.3.0-src/hadoop-dist/target

7. hadoop-2.6.0 Build Eclipse Project

-After decompression, enter hadoop-2.6.0 's src directory and execute: MVN eclipse:eclipse–dskiptests

-After execution completes, open eclipse,import the project to

ubutun14.04 compile hadoop-2.6.0 source code and build Eclipse project

Related Article

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.