HBase Shell 基本操作命令 - 详细指南
HBase Shell 基本操作命令指南
HBase Shell 是一个交互式命令行工具,用于管理和操作 HBase 数据库。以下是 HBase Shell 的一些基本操作命令:
- 创建表:
create 'table_name', 'column_family'
- 查看表:
list
- 查看表结构:
describe 'table_name'
- 插入数据:
put 'table_name', 'row_key', 'column_family:column', 'value'
- 查找数据:
get 'table_name', 'row_key'
- 删除数据:
delete 'table_name', 'row_key', 'column_family:column'
- 扫描表:
scan 'table_name'
- 删除表:
disable 'table_name'
drop 'table_name'
- 修改表结构:
alter 'table_name', {NAME => 'new_column_family', VERSIONS => 'new_versions'}
- 清空表:
truncate 'table_name'
以上只是 HBase Shell 的一些基本操作命令,更多命令和功能请参考 HBase 官方文档。
原文地址: https://www.cveoy.top/t/topic/owCE 著作权归作者所有。请勿转载和采集!