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