1. 创建表:create 'table_name', 'column_family'
  2. 查看表:list
  3. 查看表结构:describe 'table_name'
  4. 插入数据:put 'table_name', 'row_key', 'column_family:column', 'value'
  5. 查找数据:get 'table_name', 'row_key'
  6. 删除数据:delete 'table_name', 'row_key', 'column_family:column'
  7. 扫描表:scan 'table_name'
  8. 删除表:disable 'table_name', drop 'table_name'
  9. 修改表结构:alter 'table_name', {NAME => 'new_column_family', VERSIONS => 'new_versions'}
  10. 清空表:truncate 'table_name'
Hbase Shell基本操作命令

原文地址: https://www.cveoy.top/t/topic/gBr8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录