hbase常用命令

1、查看版本

hbase(main):004:0> version  

 1.3.1,rUnknown, Fri Mar 29 22:00:00 CST 2019

2、查看服务器状态

hbase(main):004:0> status

1 active master, 1 backup masters, 3 servers, 0dead, 121.233 average load

3、列举hbase表名

hbase(main):004:0> list

table1

table2

4、查看表是否存在

hbase(main):004:0> exists 'tableName'

Table tableName does exists

0 row(s) in 0.0110 seconds

5、查看表schema

hbase(main):004:0> desc 'test'

Table test is ENABLED

test

COLUMN FAMILES DESCRIPTION

{NAME=>'c', BLOOMFILTER=>'ROW', VERSIONS=>'1' ...}


标签: hbase、tablename、main、exists、runknown、面试
  • 回复
隐藏