2013-04-29 44 views
0

我编译日食的时候有问题的Eclipse插件插件,这是错误,我得到Hadoop的

/usr/local/hadoop/src/contrib/eclipse-plugin$ ant 
Buildfile: /usr/local/hadoop/src/contrib/eclipse-plugin/build.xml 

BUILD FAILED 
/usr/local/hadoop/src/contrib/eclipse-plugin/build.xml:22: The following error occurred while executing this line: 
/usr/local/hadoop/src/contrib/build-contrib.xml:43: Element type "property" must be followed by either attribute specifications, ">" or "/>". 

Total time: 0 seconds 

和修饰线条这些

41: <!--modificacion de hadoop--> 
42: <!-- Property added for compiling eclipse plugin --> 
43: <property name="src.eclipse"  location="${root}/usr/lib/eclipse"/> 
44: <!--cerrado--> 

回答

0

你跟着教程来创建这个插件在? 如果您只修改build.xml,我认为它不会起作用。以下是我使用,并为我工作:

编辑buildcontrib.xml (下取决于你的Hadoop的版本线,我想这一切都与Hadoop的1.2.1)

<property name="version" value="1.2.1" /> 

<property name="eclipse.home" value="/path/to/eclipse/home" /> 

编辑并添加以下行build.properties:

eclipse.home=/path/to/eclipse/home 

version=1.2.1 

commons­cli.version=1.2 

commons­configuration.version=1.6 

commons­httpclient.version=3.0.1 

commons­lang.version=2.4 

jackson­core­asl.version=1.8.8 

jackson­mapper­asl.version=1.8.8 

在METAINF/MANIFEST.MF

Bundle­ClassPath: classes/, 

lib/hadoop­core.jar, 

lib/commons­cli­1.2.jar, 

lib/commons­configuration­1.6.jar, 

lib/jackson­core­asl­1.8.8.jar, 

lib/commons­httpclient­3.0.1.jar, 

lib/jackson­mapper­asl­1.8.8.jar, 

lib/commons­lang­2.4.jar 

在build.xml中,添加后:

<fileset dir="${hadoop.root}"> 

      <include name="*.jar" /> 

</fileset> 

最后,执行蚂蚁罐子,并添加生成的插入到蚀。