目录
(4)disable&&disable_all&&is_disabled
(5)enable&&enable_all&&is_enabled
(6)describe&&exists&&drop&&drop_all
(10)count&&get_splits&&truncate&&truncate_preserver
一、前言
本篇文章主要讲述Hbase Shell的基本操作,如通用操作、DDL操作、DML操作,使读者能够对于Hbase Shell有基本的认识。
二、Hbase Shell
启动Hbase Shell
hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/export/servers/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/export/servers/hadoop-2.10.1/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.4.11, r7e672a0da0586e6b7449310815182695bc6ae193, Tue Mar 15 10:31:00 PDT 2022
Took 0.0015 seconds
hbase:001:0>
1、通用操作
status | 提供Hbase的状态,如服务器数量 |
---|---|
version | 提供正在使用的Hbase版本 |
whoami | 提供有关用户信息 |
table_help | 为表引用命令提供帮助 |
获取所有表
hbase:001:0> list
TABLE
Student
Taxi_Data
stu
student_mr
teacher
testtable
6 row(s)
Took 0.4684 seconds