Hadoop基础教程-第13章 源码编译(13.3 HBase1.2.6源码编译)

第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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏我是攻城师

驭象者之Apache Oozie

3523
来自专栏nummy

flume RPC 接口开发

1304
来自专栏岑玉海

Hive Tuning(四) 从查询计划看hive.auto.convert.join的好处

今天我们来讲一下如何看懂Hive的查询计划。 hive的执行计划包括三部分 – Abstract syntax tree – 可以直接忽略  – Sta...

2787
来自专栏分布式系统和大数据处理

使用Spark读取Hive中的数据

在默认情况下,Hive使用MapReduce来对数据进行操作和运算,即将HQL语句翻译成MapReduce作业执行。而MapReduce的执行速度是比较慢的,一...

2606
来自专栏Hadoop实操

如何在HDFS上查看YARN历史作业运行日志

在未开通Yarn Web界面端口8088,或者开通了8088,没有开通单个NodeManager如8042时,在MapReduce作业有失败时,往往我们没法直接...

3454
来自专栏Hadoop实操

如何使用Cloudera Manager禁用YARN的HA

前面Fayson写过《如何使用Cloudera Manager启用YARN的HA》。本篇文章主要讲述如何使用Cloudera Manager禁用YARN的HA。

3255
来自专栏蓝天

在Linux上编译Hadoop-2.4.0

Hadoop-2.4.0的源码目录下有个BUILDING.txt文件,它介绍了如何在Linux和Windows下编译源代码,本文基本是遵照BUILDING...

870
来自专栏Hadoop实操

如何使用Hue上创建一个完整Oozie工作流

在使用CDH集群中经常会有一些特定顺序的作业需要在集群中运行,对于需要多个作业顺序执行的情况下,如何能够方便的构建一个完整的工作流在CDH集群中执行,前面Fay...

9616
来自专栏Netkiller

Apache Hive 快速入门

本文节选自《Netkiller Database 手札》 CentOS 7.3 + Server JRE 1.8 + Hadoop-2.8.0 + Hive-...

2847
来自专栏Hadoop实操

Hive2.2.0如何与CDH集群中的Spark1.6集成

1432

扫码关注云+社区