Eclipse Import Hadoop 2.6.0 source

Source: Internet
Author: User

1. First go to the official website (Hadoop 2.6) to download the Hadoop source files and unzip

2. Please make sure you have the JDK installed and MAVEN (Maven installation tutorial This is a blog post written by someone else, save the profile, remember Source)

3. Go to the Hadoop-2.6.0-src/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop directory

Can see there are many folders, find the IPC directory, inside the mkdir protobuf folder (there is also a lost problem, this later resolved)

4. Installing PROTOBUF

: Http:// and Unzip

Switch to the Protobuf folder, and in turn, enter it under Terminal:

. /configure


Make check

Make install

When all is done, enter Protoc-version to check if the installation was successful.

5. hadoop-2.6.0-src/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/ shows that the Avrorecord class could not be found

Go to Grepcode to download the 2.5.0 or later version. Put it in the appropriate location

6. CD to Hadoop-2.6.0-src/hadoop-maven-plugins directory use: mvn intall

7. CD to HADOOP-2.6.0-SRC directory using MVN eclipse:eclipse-dskiptests

8. In eclipse: file-import-existing Projects into Workspace Select HADOOP-2.6.0-SRC Catalog import (recommended for a Workspace re-import, because the number of project is quite large)

At this point, basically there is no problem, but there are some small problems, need to solve

Problems you may encounter:

1.ORG.APACHE.HADOOP.IPC.PROTOBUF package, may be empty package.

Go to Grepcode on the search for Testprotos and Testrpcserviceprotos two classes, I encountered the situation is the local directory already exists that two files, but did not import.

Without the above two classes, you will be prompted for a large emptyrequestproto and other unresolved

2. You will be prompted Com.sum.tool or Javadoc packet cannot be resolved

Right-select BuildPath, configure build path, library---add library--IRE system

3. There is a problem with the build path in the Hadoop-streaming project

Remove the hadoop-yarn-server-resourcemanager/conf from source, then link source: Source root directory/hadoop-yarn-project/hadoop-yarn/ Hadoop-yarn-server/hadoop-yarn-server-resourcemanager/conf


1. Import hadoop2.6.0 source code to eclipse tutorial in Mac

2. Eclipse Import into Hadoop source

3. hadoop-2.6.0-src Source Import Eclipse

4. Grepcode Testprotos

5. Baidu knows: Errors and workarounds that may be encountered when importing (please refer to the other 1 answers)

Eclipse Import Hadoop 2.6.0 source

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: 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.