Hadoop Elephant Tour 010-use Eclipse to view Hadoop source code

Source: Internet
Author: User

Hadoop Elephant Safari 010- using Eclipse to view Hadoop source code

sinom

This is what I'm using. hadoop-1.1.2.tar.gz , this file can be downloaded at the following address:

Official Address: http://archive.apache.org/dist/hadoop/core/hadoop-1.1.2/

1. Unzip the hadoop-1.1.2.tar.gz


The folder structure looks like this:

2. Create a new javaproject in myeclipse

Project name is Hadoop

3. Copy the source code into our project

copy hadoop-1.1.2 core hdfs mapred three folders to our hadoop :


After the copy is complete as shown:

4. Debugging Code

Change the directory structure such as:

Add external dependency Packages

also need a Ant.jar Package

Replace JDK

At this point the source code no longer has errors, debugging completed.


Hadoop Elephant Tour 010-use Eclipse to view Hadoop source code

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.