Building a Hadoop source reading environment based on Eclipse

Source: Internet
Author: User

First, the tool
1, Hadoop-2.6.0-src.tar
2. Eclipse
3. Maven
4, Protoc
Second, download the source address: http://mirrors.hust.edu.cn/apache/hadoop/common/
third, prepare maven package: Eclipse-maven3-plugin
m2_homee:\apache-maven-3.3.3
Path;%m2_home%\bin
Test: Cmd-->mvn-v
iv. installation of Protoc
1, Preparation: Protoc-2.5.0-win32.zip, protobuf-2.5.0.tar.gz
2, copy the Protoc.exe in Protoc-2.5.0-win32 to C:\Windows\System32.
3. Copy the Proto.exe file to the extracted xxx\protobuf-2.5.0\src directory.
4. Enter the Xxx\protobuf-2.4.1\java directory to execute the MVN Package command to edit the packages generated Protobuf-java-2.5.0.jar files (jar packages are located xxx\protobuf-2.4.1\ Javatarget directory).
(Note: Run failed, run again unexpectedly success, may network bad, get failed)
5, Protoc--version
v. To obtain the source code through MAVEN (it should be explained that when using MAVEN, you need to install JDK,PROTOC first, if not installed can refer to win7 How to install maven, install PROTOC)
1. Enter HADOOP->SRC directory: e:\hadoop_src\hadoop-2.6.0-src\hadoop-maven-plugins
2. Run: mvn Install build jar package (Jar package in: E:\hadoop_src\hadoop-2.6.0-src\hadoop-maven-plugins\target)
3, enter: E:\SOFTWARE\HADOOP\HADOOP2.6\HADOOP-2.6.0-SRC, run: mvn eclipse:eclipse-dskiptests

(At this time, we have downloaded the source code.) At this point, we will see a noticeable increase in the file size. )

4. MVN eclipse:eclipse-dskiptests (Generate Eclipse project file)
(This step is always a build failure, but you can already import the source code)
Six, casually open a method, Ctrl+alt+h can view the call relationship

Building a Hadoop source reading environment based on Eclipse

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.