How to compile Hbase 0.98.7 under Linux
This article mainly explains "how to compile Hbase 0.98.7 under Linux". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "how to compile Hbase 0.98.7 under Linux" together!
First download the Hbase source package, then extract it.
Modify hbase_home="unzipped directory" in hbase-0.98.7/dev-support/generate-hadoopX-poms.sh
Execute the following command,
mvn -f pom.xml.hadoop2 install -DskipTests assembly:single -Prelease
Display after successful compilation
[INFO] Building tar: /data/hbase-0.98.7/hbase-assembly/target/hbase-0.98.7-hadoop2-bin.tar.gz[INFO] ------------------------------------------------------------------------[INFO] Reactor Summary:[INFO] [INFO] HBase .............................................. SUCCESS [13:38 min][INFO] HBase - Annotations ................................ SUCCESS [ 40.665 s][INFO] HBase - Common ..................................... SUCCESS [18:58 min][INFO] HBase - Protocol ................................... SUCCESS [ 32.356 s][INFO] HBase - Client ..................................... SUCCESS [ 56.317 s][INFO] HBase - Hadoop Compatibility ....................... SUCCESS [ 0.838 s][INFO] HBase - Hadoop Two Compatibility ................... SUCCESS [ 29.615 s][INFO] HBase - Prefix Tree ................................ SUCCESS [ 2.509 s][INFO] HBase - Server ..................................... SUCCESS [03:28 min][INFO] HBase - Testing Util ............................... SUCCESS [ 26.360 s][INFO] HBase - Thrift ..................................... SUCCESS [ 29.042 s][INFO] HBase - Shell ...................................... SUCCESS [01:28 min][INFO] HBase - Integration Tests .......................... SUCCESS [ 11.200 s][INFO] HBase - Examples ................................... SUCCESS [ 2.236 s][INFO] HBase - Assembly ................................... SUCCESS [ 28.300 s][INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 41:59 min[INFO] Finished at: 2014-11-05T10:25:52+08:00[INFO] Final Memory: 76M/243M[INFO] ------------------------------------------------------------------------I believe everyone has a deeper understanding of how to compile Hbase 0.98.7 under Linux, and the specific use situation needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!