第13章 源码编译
13.3 HBase1.2.6源码编译
13.3.1 下载源码
https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/
单击“stable”连接
下载源码hbase-1.2.6-src.tar.gz
13.3.2 解压缩
[root@cyq opt]# tar -zxvf hbase-1.2.6-src.tar.g
[root@cyq opt]# cd hbase-1.2.6/
13.3.3 编译
[root@cyq hbase-1.2.6]# mvn clean package -DskipTests assembly:single
[INFO] Scanning for projects...
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.pom
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.pom (5 KB at 20.5 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.jar
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.jar (172 KB at 534.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache HBase
[INFO] Apache HBase - Checkstyle
[INFO] Apache HBase - Resource Bundle
[INFO] Apache HBase - Annotations
[INFO] Apache HBase - Protocol
[INFO] Apache HBase - Common
[INFO] Apache HBase - Procedure
[INFO] Apache HBase - Client
[INFO] Apache HBase - Hadoop Compatibility
[INFO] Apache HBase - Hadoop Two Compatibility
[INFO] Apache HBase - Prefix Tree
[INFO] Apache HBase - Server
[INFO] Apache HBase - Testing Util
[INFO] Apache HBase - Thrift
[INFO] Apache HBase - Rest
[INFO] Apache HBase - Shell
[INFO] Apache HBase - Integration Tests
[INFO] Apache HBase - Examples
[INFO] Apache HBase - External Block Cache
[INFO] Apache HBase - Assembly
[INFO] Apache HBase - Shaded
[INFO] Apache HBase - Shaded - Client
[INFO] Apache HBase - Shaded - Server
....
[INFO] Reactor Summary:
[INFO]
[INFO] Apache HBase ....................................... SUCCESS [01:49 min]
[INFO] Apache HBase - Checkstyle .......................... SUCCESS [ 41.605 s]
[INFO] Apache HBase - Resource Bundle ..................... SUCCESS [ 0.106 s]
[INFO] Apache HBase - Annotations ......................... SUCCESS [ 0.424 s]
[INFO] Apache HBase - Protocol ............................ SUCCESS [ 14.514 s]
[INFO] Apache HBase - Common .............................. SUCCESS [ 33.686 s]
[INFO] Apache HBase - Procedure ........................... SUCCESS [ 0.686 s]
[INFO] Apache HBase - Client .............................. SUCCESS [ 4.176 s]
[INFO] Apache HBase - Hadoop Compatibility ................ SUCCESS [ 0.109 s]
[INFO] Apache HBase - Hadoop Two Compatibility ............ SUCCESS [ 1.757 s]
[INFO] Apache HBase - Prefix Tree ......................... SUCCESS [ 0.521 s]
[INFO] Apache HBase - Server .............................. SUCCESS [ 23.583 s]
[INFO] Apache HBase - Testing Util ........................ SUCCESS [ 1.252 s]
[INFO] Apache HBase - Thrift .............................. SUCCESS [ 3.329 s]
[INFO] Apache HBase - Rest ................................ SUCCESS [ 1.270 s]
[INFO] Apache HBase - Shell ............................... SUCCESS [ 3.083 s]
[INFO] Apache HBase - Integration Tests ................... SUCCESS [ 1.327 s]
[INFO] Apache HBase - Examples ............................ SUCCESS [ 0.662 s]
[INFO] Apache HBase - External Block Cache ................ SUCCESS [ 1.238 s]
[INFO] Apache HBase - Assembly ............................ SUCCESS [ 14.405 s]
[INFO] Apache HBase - Shaded .............................. SUCCESS [ 0.034 s]
[INFO] Apache HBase - Shaded - Client ..................... SUCCESS [ 0.191 s]
[INFO] Apache HBase - Shaded - Server ..................... SUCCESS [ 0.311 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:23 min
[INFO] Finished at: 2017-07-27T11:40:44+08:00
[INFO] Final Memory: 128M/461M
[INFO] ------------------------------------------------------------------------
您在 /var/spool/mail/root 中有新邮件
[root@cyq hbase-1.2.6]#
13.3.4 查看结果
[root@cyq hbase-1.2.6]# cd hbase-assembly/
[root@cyq hbase-assembly]# ls
pom.xml src target
[root@cyq hbase-assembly]# cd target/
[root@cyq target]# ls
archive-tmp dependency dependency-maven-plugin-markers hbase-1.2.6-bin.tar.gz maven-shared-archive-resources NOTICE.aggregate supplemental-models.xml
[root@cyq target]# ll
总用量 73680
drwxr-xr-x 2 root root 4096 7月 27 11:40 archive-tmp
drwxr-xr-x 124 root root 12288 7月 27 11:40 dependency
drwxr-xr-x 2 root root 16384 7月 27 11:40 dependency-maven-plugin-markers
-rw-r--r-- 1 root root 75289882 7月 27 11:40 hbase-1.2.6-bin.tar.gz
drwxr-xr-x 3 root root 4096 7月 27 11:40 maven-shared-archive-resources
-rw-r--r-- 1 root root 42178 7月 27 11:40 NOTICE.aggregate
-rw-r--r-- 1 root root 66255 7月 27 11:40 supplemental-models.xml
[root@cyq target]#
hbase-1.2.6-bin.tar.gz
第13章 源码编译
13.3 HBase1.2.6源码编译
13.3.1 下载源码
https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/
单击“stable”连接
下载源码hbase-1.2.6-src.tar.gz
13.3.2 解压缩
[root@cyq opt]# tar -zxvf hbase-1.2.6-src.tar.g
[root@cyq opt]# cd hbase-1.2.6/
13.3.3 编译
[root@cyq hbase-1.2.6]# mvn clean package -DskipTests assembly:single
[INFO] Scanning for projects...
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.pom
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.pom (5 KB at 20.5 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.jar
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/2.5.3/maven-bundle-plugin-2.5.3.jar (172 KB at 534.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache HBase
[INFO] Apache HBase - Checkstyle
[INFO] Apache HBase - Resource Bundle
[INFO] Apache HBase - Annotations
[INFO] Apache HBase - Protocol
[INFO] Apache HBase - Common
[INFO] Apache HBase - Procedure
[INFO] Apache HBase - Client
[INFO] Apache HBase - Hadoop Compatibility
[INFO] Apache HBase - Hadoop Two Compatibility
[INFO] Apache HBase - Prefix Tree
[INFO] Apache HBase - Server
[INFO] Apache HBase - Testing Util
[INFO] Apache HBase - Thrift
[INFO] Apache HBase - Rest
[INFO] Apache HBase - Shell
[INFO] Apache HBase - Integration Tests
[INFO] Apache HBase - Examples
[INFO] Apache HBase - External Block Cache
[INFO] Apache HBase - Assembly
[INFO] Apache HBase - Shaded
[INFO] Apache HBase - Shaded - Client
[INFO] Apache HBase - Shaded - Server
....
[INFO] Reactor Summary:
[INFO]
[INFO] Apache HBase ....................................... SUCCESS [01:49 min]
[INFO] Apache HBase - Checkstyle .......................... SUCCESS [ 41.605 s]
[INFO] Apache HBase - Resource Bundle ..................... SUCCESS [ 0.106 s]
[INFO] Apache HBase - Annotations ......................... SUCCESS [ 0.424 s]
[INFO] Apache HBase - Protocol ............................ SUCCESS [ 14.514 s]
[INFO] Apache HBase - Common .............................. SUCCESS [ 33.686 s]
[INFO] Apache HBase - Procedure ........................... SUCCESS [ 0.686 s]
[INFO] Apache HBase - Client .............................. SUCCESS [ 4.176 s]
[INFO] Apache HBase - Hadoop Compatibility ................ SUCCESS [ 0.109 s]
[INFO] Apache HBase - Hadoop Two Compatibility ............ SUCCESS [ 1.757 s]
[INFO] Apache HBase - Prefix Tree ......................... SUCCESS [ 0.521 s]
[INFO] Apache HBase - Server .............................. SUCCESS [ 23.583 s]
[INFO] Apache HBase - Testing Util ........................ SUCCESS [ 1.252 s]
[INFO] Apache HBase - Thrift .............................. SUCCESS [ 3.329 s]
[INFO] Apache HBase - Rest ................................ SUCCESS [ 1.270 s]
[INFO] Apache HBase - Shell ............................... SUCCESS [ 3.083 s]
[INFO] Apache HBase - Integration Tests ................... SUCCESS [ 1.327 s]
[INFO] Apache HBase - Examples ............................ SUCCESS [ 0.662 s]
[INFO] Apache HBase - External Block Cache ................ SUCCESS [ 1.238 s]
[INFO] Apache HBase - Assembly ............................ SUCCESS [ 14.405 s]
[INFO] Apache HBase - Shaded .............................. SUCCESS [ 0.034 s]
[INFO] Apache HBase - Shaded - Client ..................... SUCCESS [ 0.191 s]
[INFO] Apache HBase - Shaded - Server ..................... SUCCESS [ 0.311 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:23 min
[INFO] Finished at: 2017-07-27T11:40:44+08:00
[INFO] Final Memory: 128M/461M
[INFO] ------------------------------------------------------------------------
您在 /var/spool/mail/root 中有新邮件
[root@cyq hbase-1.2.6]#
13.3.4 查看结果
[root@cyq hbase-1.2.6]# cd hbase-assembly/
[root@cyq hbase-assembly]# ls
pom.xml src target
[root@cyq hbase-assembly]# cd target/
[root@cyq target]# ls
archive-tmp dependency dependency-maven-plugin-markers hbase-1.2.6-bin.tar.gz maven-shared-archive-resources NOTICE.aggregate supplemental-models.xml
[root@cyq target]# ll
总用量 73680
drwxr-xr-x 2 root root 4096 7月 27 11:40 archive-tmp
drwxr-xr-x 124 root root 12288 7月 27 11:40 dependency
drwxr-xr-x 2 root root 16384 7月 27 11:40 dependency-maven-plugin-markers
-rw-r--r-- 1 root root 75289882 7月 27 11:40 hbase-1.2.6-bin.tar.gz
drwxr-xr-x 3 root root 4096 7月 27 11:40 maven-shared-archive-resources
-rw-r--r-- 1 root root 42178 7月 27 11:40 NOTICE.aggregate
-rw-r--r-- 1 root root 66255 7月 27 11:40 supplemental-models.xml
[root@cyq target]#
hbase-1.2.6-bin.tar.gz