A. under the Hadoop decompression directory, locate Src\contrib\eclipse-plugin\build.xml and add the following lines: <filesetdir= "${hadoop.root}" > <includename= "Hadoop*.jar"/> </fileset> B. the increase in Build.xml is as follows: <property name= "version" value= "1.2.1"/> C. In Build.xml, revise as follows: <copy file= "${hadoop.root}/hadoop-core-${version}.jar" tofile= "${build.dir}/lib/hadoop-core.jar" verbose= "true "/> <copyfile= "${hadoop.root}/lib/commons-cli-1.2.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/commons-lang-2.4.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/commons-configuration-1.6.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/jackson-mapper-asl-1.8.8.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/jackson-core-asl-1.8.8.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/commons-httpclient-3.0.1.jar" todir= "${build.dir}/lib" verbose= "true"/> <copyfile= "${hadoop.root}/lib/commons-cli-${commons-cli.version}.jar" todir= "${build.dir}/lib" verbose= "true" /> D. Locate Src\contrib\build-contrib.xml and add the following lines: <propertyname= "Version" value= "1.2.1"/> <property name= "ivy.version" value= "2.1.0"/> <propertyname= "Eclipse.home" location= "F:/hadoop/eclipse"/> E. locate The Src\contrib\eclipse-plugin\meta-inf and modify the following: bundle-classpath:classes/,lib/hadoop-core.jar,lib/commons-cli-1.2.jar,lib/commons-configuration-1.6.jar,lib/ commons-httpclient-3.0.1.jar,lib/commons-lang-2.4.jar,lib/jackson-core-asl-1.8.8.jar,lib/ Jackson-mapper-asl-1.8.8.jar F. Open the command line, enter the directory \src\contrib\eclipse-plugin, enter the ant compilation, and if everything works, the compiler will pass. G. Finally, you can find the compiled plugin under {hadoop_home}\build\contrib\eclipse-plugin path. |