Hadoop-1.2.1+eclipse+ubuntu Plug-in compilation small note

Source: Internet
Author: User

1. Install JDK and ant, download hadoop-1.2.1,hadoop-1.2.1 's eclipse plugin source in ${hadoop.home}/src/contrib/eclipse-plugin.

2. Import the source code into eclipse. file->import->general->existing Projects into workspace-> select ${hadoop.home}/src/contrib/eclipse-plugin

3. The compiler will not be prompted to find the class. Add the following fileset to Classpath.

4. Set the jar for the Build.xml file.

5. In the ${hadoop.home}/src/contrib/build-contrib.xml file, add:

<property name= "version" value= "1.2.1"/>//value is the version number of Hadoop

<property name= "Eclipse.home" location= "/home/andy/eclipse"/>//location is the home directory of Eclipse

6. Right-click Build.xml in Eclipse to execute the ant build. The generated Hadoop-eclipse-plugin-1.2.1.jar plug-in is ${hadoop.home}/build/contrib/eclipse-plugin

Directory, put it under the Plugins folder in the Eclipse installation directory and restart Eclipse.

Hadoop-1.2.1+eclipse+ubuntu Plug-in compilation small note

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.