编译hbase

配套hadoop2.2.0
运用 dev-support/generate-hadoopX-poms.sh 为相应的版本生成pom文件
bash -x ./dev-support/generate-hadoopX-poms.sh 0.96.2 0.96.2-hadoop2
hadoop@hadoop:/opt/.../hbase-0.96.2$ vim dev-support/generate-hadoopX-poms.sh 
hbase_home="/opt/.../hbase-0.96.2"
hadoop@hadoop:/opt/.../hbase-0.96.2$ mvn -f pom.xml.hadoop2 install -DskipTests assembly:single
hadoop@hadoop:/opt/.../hbase-0.96.2$ mvn -f pom.xml.hadoop2 install -DskipTests assembly:single
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.hbase:hbase-assembly:pom:0.96.2-hadoop2
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] HBase
[INFO] HBase - Common
[INFO] HBase - Protocol
[INFO] HBase - Client
[INFO] HBase - Hadoop Compatibility
[INFO] HBase - Hadoop Two Compatibility
[INFO] HBase - Prefix Tree
[INFO] HBase - Server
[INFO] HBase - Testing Util
[INFO] HBase - Thrift
[INFO] HBase - Shell
[INFO] HBase - Integration Tests
[INFO] HBase - Examples
[INFO] HBase - Assembly
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase 0.96.2-hadoop2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.4:process (default) @ hbase ---
[INFO] 
[INFO] --- findbugs-maven-plugin:2.5.2:findbugs (default) @ hbase ---
......
[INFO] Building tar: /opt/.../hbase-0.96.2/hbase-assembly/target/hbase-0.96.2-hadoop2-bin.tar.gz
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] HBase .............................................. SUCCESS [ 12.703 s]
[INFO] HBase - Common ..................................... SUCCESS [ 13.271 s]
[INFO] HBase - Protocol ................................... SUCCESS [  3.475 s]
[INFO] HBase - Client ..................................... SUCCESS [  4.174 s]
[INFO] HBase - Hadoop Compatibility ....................... SUCCESS [  0.496 s]
[INFO] HBase - Hadoop Two Compatibility ................... SUCCESS [  3.738 s]
[INFO] HBase - Prefix Tree ................................ SUCCESS [  2.434 s]
[INFO] HBase - Server ..................................... SUCCESS [ 21.741 s]
[INFO] HBase - Testing Util ............................... SUCCESS [  7.257 s]
[INFO] HBase - Thrift ..................................... SUCCESS [  7.187 s]
[INFO] HBase - Shell ...................................... SUCCESS [  5.637 s]
[INFO] HBase - Integration Tests .......................... SUCCESS [  2.529 s]
[INFO] HBase - Examples ................................... SUCCESS [  1.669 s]
[INFO] HBase - Assembly ................................... SUCCESS [ 33.318 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:03 min
[INFO] Finished at: 2014-07-18T16:43:09+08:00
[INFO] Final Memory: 60M/512M
[INFO] ------------------------------------------------------------------------

猜你喜欢

转载自houshangxiao.iteye.com/blog/2093767
今日推荐