a. 在hadoop解压目录下,找到src\contrib\eclipse-plugin\build.xml,增加如下几行: <filesetdir="${hadoop.root}"> <includename="hadoop*.jar"/> </fileset> b. 在build.xml增加如下: <property c. 在build.xml,修改如下: <copy <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. 找到src\contrib\build-contrib.xml,添加以下几行: <propertyname="version" <property <propertyname="eclipse.home" e. 找到src\contrib\eclipse-plugin\META-INF,修改如下: Bundle-ClassPath: f. g. |
编译hadoop-eclipse-plugins-1.2.1插件步骤,布布扣,bubuko.com