HBase Shell 是一个基于 Ruby 编写的脚本,可以用于操作 Hbase 数据,任何可以在 IRB 进行的操作,都可以在 Hbase Shell 进行,以下是官方文档对于 Hbase Shell 的详细介绍;

Apache HBase ™ Reference Guide

以下对部分常用的 command 进行介绍:

HBase 连接


# 登录 hbase shell
hbase shell 
# 退出 hbase shell 连接
hbase(main):011:0> exit

hbase shell 远程连接

hbase之hbase shell

HBase 通用操作


**status:**查看 HBase 状态

base> status

version:查看 HBase 版本

hbase> version

whoami:查看用户信息

hbase> whoami

table_help:查看表操作信息

hbase> table_help