hbase shell命令总结
- 列出所有表名:list
- 查看集群的信息:status。可以接参数 status ‘simple’
- 统计行数:count ‘table_name’
- 查看表的前10行:scan ‘table_name’, {LIMIT => 10}
- 查看表的某几列前10行:scan ‘table_name’, {COLUMNS=>[‘列簇名:列名’], LIMIT => 10}
6.按照row_key模糊查找: scan ‘tablename’,{STARTROW=>‘rowkey_name_prefix’,STOPROW=>‘rowkey_name_prefixz’}
参考资料
- https://www.guru99.com/hbase-shell-general-commands.html