1. 最近更新到 HBase 0.99,这次是按官方链接,git clone 代码完成后,使用命令行进行编译
mvn clean install -DskipTests
结果出现以下错误
[INFO] Reactor Summary:[INFO] [INFO] HBase ............................................. SUCCESS [3.653s][INFO] HBase - Common .................................... SUCCESS [11.193s][INFO] HBase - Protocol .................................. SUCCESS [16.160s][INFO] HBase - Client .................................... SUCCESS [3.703s][INFO] HBase - Hadoop Compatibility ...................... SUCCESS [0.413s][INFO] HBase - Hadoop Two Compatibility .................. SUCCESS [1.191s][INFO] HBase - Prefix Tree ............................... SUCCESS [1.178s][INFO] HBase - Server .................................... FAILURE [7.049s][INFO] HBase - Testing Util .............................. SKIPPED[INFO] HBase - Thrift .................................... SKIPPED[INFO] HBase - Shell ..................................... SKIPPED[INFO] HBase - Integration Tests ......................... SKIPPED[INFO] HBase - Examples .................................. SKIPPED[INFO] HBase - Assembly .................................. SKIPPED[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 45.552s[INFO] Finished at: Thu Jun 26 16:45:55 CST 2014[INFO] Final Memory: 49M/355M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project hbase-server: Compilation failure: Compilation failure:[ERROR] /home/zf/src/EclipseWorkspace/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[55,27] cannot find symbol[ERROR] symbol : class ConcurrentLinkedDeque[ERROR] location: package java.util.concurrent[ERROR] /home/zf/src/EclipseWorkspace/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1121,20] cannot find symbol[ERROR] symbol : class ConcurrentLinkedDeque[ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection[ERROR] /home/zf/src/EclipseWorkspace/hbase/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java:[1121,68] cannot find symbol[ERROR] symbol : class ConcurrentLinkedDeque[ERROR] location: class org.apache.hadoop.hbase.ipc.RpcServer.Connection[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException[ERROR] [ERROR] After correcting the problems, you can resume the build with the command[ERROR] mvn2. 解决方法-rf :hbase-server
按 《》,先导入到 Eclipse,再 maven build... 即可成功。
3. 环境Ubuntu 12.04(64-bit) + Eclipse Standard Kepler SR1 + HBase 0.99.0-SNAPSHOT + JDK 1.7.0_45 + Maven 3.0.4