The premise is that JDK has been installed and hadoop has been deployed. Hadoop installation directory is hadoop-1.0.3
1. If there is no ant in the system, install ant first. Yum install ant
2. Add :( location is the installation directory of eclipse in the hadoop-1.0.3 \ SRC \ contrib \ build-contrib.xml)
<Property name = "version" value = "1.0.3"/> <property name = "Eclipse. Home" location = "/home/user/Eclipse"/>
3. Run ant compile-logfile error. log under the hadoop-1.0.3 directory. It takes some time to compile hadoop. Please wait.
4. Execute ant compile-logfile error. Log in hadoop-1.0.3/src/contrib/eclipse-plugin
5. Copy the hadoop-core-1.0.3.jar to the build folder and execute ant jar under the hadoop-1.0.3/src/contrib/eclipse-plugin
6. In the hadop-1.0.3/build/contrib/eclipse-plugin folder, you can see the generated hadoop-eclipse-plugin-1.0.3.jar, copy the jar to the eclipse plugins folder.