大数据技术之HBase.docx
大数据技术之HBase 大数据技术之HBase是基于Hadoop的分布式、可扩展、支持海量数据存储的NoSQL数据库。HBase的数据模型逻辑上与关系型数据库类似,但从物理存储结构来看,HBase更像是一个multi-dimensional map。 一、HBase基本概念 1.1 HBase定义 HBase是一种分布式、可扩展、支持海量数据存储的NoSQL数据库。它是基于Hadoop的,能够存储大量数据,并提供高性能的数据处理能力。 1.2 HBase数据模型 HBase的数据模型逻辑上与关系型数据库类似,数据存储在一张表中,有行有列。但从HBase的底层物理存储结构(K-V)来看,HBase更像是一个multi-dimensional map。 1.2.1 HBase逻辑结构 HBase的逻辑结构主要包括Name Space、Region、Row、Column、Cell等组件。 * Name Space:命名空间,类似于关系型数据库的DataBase概念,每个命名空间下有多个表。 * Region:类似于关系型数据库的表概念。不同的是,HBase定义表时只需要声明列族即可,不需要声明具体的列。 * Row:HBase表中的每行数据都由一个RowKey和多个Column(列)组成,数据是按照RowKey的字典顺序存储的,并且查询数据时只能根据RowKey进行检索。 * Column:HBase中的每个列都由Column Family(列族)和Column Qualifier(列限定符)进行限定,例如info:name,info:age。 * Cell:由{rowkey, column Family:column Qualifier, time Stamp}唯一确定的单元。cell中的数据是没有类型的,全部是字节码形式存储。 1.3 HBase基本架构 HBase的基本架构主要包括Region Server、Master、Zookeeper、HDFS等组件。 * Region Server:Region Server为Region的管理者,其实现类为HRegionServer,主要作用如下:对于数据的操作:get, put, delete;对于Region的操作:splitRegion、compactRegion。 * Master:Master是所有Region Server的管理者,其实现类为HMaster,主要作用如下:对于表的操作:create, delete, alter;对于RegionServer的操作:分配regions到每个RegionServer,监控每个RegionServer的状态,负载均衡和故障转移。 * Zookeeper:HBase通过Zookeeper来做Master的高可用、RegionServer的监控、元数据的入口以及集群配置的维护等工作。 * HDFS:HDFS为HBase提供最终的底层数据存储服务,同时为HBase提供高可用的支持。 二、HBase快速入门 2.1 HBase安装部署 HBase的安装部署主要包括Zookeeper的部署、Hadoop的部署、HBase的解压等步骤。 2.1.1 Zookeeper部署 首先保证Zookeeper集群的正常部署并启动,Zookeeper是HBase的依赖组件,用于提供高可用、分布式锁、配置管理等功能。 2.1.2 Hadoop部署 Hadoop集群的正常部署并启动,Hadoop是HBase的依赖组件,用于提供高可用的分布式文件系统。 2.1.3 HBase解压 将HBase解压到指定目录,并配置HBase的环境变量等信息。 大数据技术之HBase是基于Hadoop的分布式、可扩展、支持海量数据存储的NoSQL数据库,具有高性能、可扩展、灵活的数据模型和架构设计,是大数据时代的重要技术之一。
![](https://csdnimg.cn/release/download_crawler_static/15545896/bg1.jpg)
![](https://csdnimg.cn/release/download_crawler_static/15545896/bg2.jpg)
![](https://csdnimg.cn/release/download_crawler_static/15545896/bg3.jpg)
![](https://csdnimg.cn/release/download_crawler_static/15545896/bg4.jpg)
![](https://csdnimg.cn/release/download_crawler_static/15545896/bg5.jpg)
剩余33页未读,继续阅读
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![avatar](https://profile-avatar.csdnimg.cn/9e8f851c7aa146d38b6a6c84d76a52ef_qq_32727095.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
- 粉丝: 1w+
- 资源: 14
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0