1. 在eclipse下创建javaproject,导入hadoop-1.2.1\src\contrib\eclipse-plugin,在project根目录下创建lib文件夹,将图片中的jar复制进去,并且将hadoop-1.2.1\src\contrib\build-contrib.xml复制到project根目录下
2. 修改build-contrib.xml
在bundle-classpath中添加以下jar
Bundle-ClassPath: classes/,
5.运行ant
(1)右键Project -> Builders -> New -> Ant Builder