echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » 使用Eclipse3.4编译部署Hadoop/Hbase工程时需要修正的BUG 仲子说

2009-07-28

使用Eclipse3.4编译部署Hadoop/Hbase工程时需要修正的BUG

Posted in Java, FreeBSD/Unix服务器 at 22:06 Author:仲远

标签:

?????????Eclipse3.4??????Hadoop?????Hbase???????????????Hadoop???????????????Hadoop??????????????

1?Hadoop???Linux/Unix???????

?????Windows???Eclipse???Hadoop???????Linux??????????????Linux???Eclipse??Hadoop?

2?????software update
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/
http://download.eclipse.org/technology/subversive/0.7/update-site/

3?SVN????????
Hadoop: http://svn.apache.org/repos/asf/hadoop/common
????http://svn.apache.org/repos/asf/hadoop/core/
??SVN??????????

HBase?SVN???http://svn.apache.org/repos/asf/hadoop/hbase

4?Eclipse3.4??Hadoop??????Bug?????
??Eclipse3.4??Hadoop??Build Project????????????“src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java
*:35: cannot find symbol ”????Hadoop???Eclipse3.4??????

????????src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\launch\HadoopApplicationLaunchShortcut.java??:

(1)?“import org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut;”??“import org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut;”

(2)?“// Find an existing or create a launch configuration (Standard way)
     ILaunchConfiguration iConf =
         super.findLaunchConfiguration(type, configType);”???
???“ ILaunchConfigurationWorkingCopy iConfWC;
     try {”??????????
“if (iConf == null) iConf = super.createConfiguration(type);”

?????????

ILaunchConfiguration iConf =
         super.findLaunchConfiguration(type, configType);

if (iConf == null) iConf = super.createConfiguration(type);
ILaunchConfigurationWorkingCopy iConfWC;
try {

……

5??Eclipse?????HBase???????
????HBase???????”Properties->Java Build Path”?

(1)?Source tab?Remove??item?????”Add Folder”???”src/java”?”src/test”
(2)?Libraries tab???”Add Jars”???”lib”?”lib/jetty-ext”???jar?

????????Build HBase Project??

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word