
# HBase应用开发样例工程介绍
MRS样例工程获取地址为<https://github.com/huaweicloud/huaweicloud-mrs-example>，切换分支为与MRS集群相匹配的版本分支，然后下载压缩包到本地后解压，即可获取各组件对应的样例代码工程。
当前MRS提供以下HBase相关样例工程：
表1HBase相关样例工程 
| 样例工程位置                              | 描述                                                                                                                                                                                                   |
|:---|:---|
| hbase-examples/hbase-example        | HBase数据读写操作的应用开发示例。 通过调用HBase接口可实现创建用户表、导入用户数据、增加用户信息、查询用户信息及为用户表创建二级索引等功能，相关业务场景介绍请参见[HBase样例程序开发思路](https://support.huaweicloud.com/devg3-mrs/mrs_07_290009.html)。 |
| hbase-examples/hbase-rest-example   | HBase Rest接口应用开发示例。 使用Rest接口实现查询HBase集群信息、获取表、操作NameSpace、操作表等功能，相关样例介绍请参见[HBase Rest接口调用样例程序](https://support.huaweicloud.com/devg3-mrs/mrs_07_290081.html)。         |
| hbase-examples/hbase-thrift-example | 访问HBase ThriftServer应用开发示例。 访问ThriftServer操作表、向表中写数据、从表中读数据，相关样例介绍请参见[HBase ThriftServer连接样例程序](https://support.huaweicloud.com/devg3-mrs/mrs_07_290082.html)。       |
| hbase-examples/hbase-zk-example     | HBase访问ZooKeeper应用开发示例。 在同一个客户端进程内同时访问MRS ZooKeeper和第三方的ZooKeeper，其中HBase客户端访问MRS ZooKeeper，客户应用访问第三方ZooKeeper。                                                      |
   
