hbase shell 基本操作命令
2015-07-29 18:26
525 查看
具体的hbase shell 命令如下表所示:
查看hbase 的状态 : status
查看hbase 的版本 : version
创建scores表: create ‘scores’,‘grad’,'course'
查看当前hbase 中有哪些表: list
查看表scores的构造: describe ‘scores’
使用put插入数据: put 'scores','xiapi','grad:','1'
(xiaoxue 类似) put 'scores','xiapi','course:chine',97'
put 'scores','xiapi',course:math','128'
put 'scorse','xiapi','course:engish','85'
查看表‘scores’ 中的行‘xiapi’: get scores','xiapi'
查看表中所有数据: scan 'scores'
查看表中列簇所有数据: scan 'scores',{COLUMNS=>'course'}
删除表中xiapi行中course列簇的math:delete 'scores','xiapi','course:math'
关闭表: disable ‘scores’
删除表(删除之前必须关闭): drop 'scores'
查看hbase 的状态 : status
查看hbase 的版本 : version
创建scores表: create ‘scores’,‘grad’,'course'
查看当前hbase 中有哪些表: list
查看表scores的构造: describe ‘scores’
使用put插入数据: put 'scores','xiapi','grad:','1'
(xiaoxue 类似) put 'scores','xiapi','course:chine',97'
put 'scores','xiapi',course:math','128'
put 'scorse','xiapi','course:engish','85'
查看表‘scores’ 中的行‘xiapi’: get scores','xiapi'
查看表中所有数据: scan 'scores'
查看表中列簇所有数据: scan 'scores',{COLUMNS=>'course'}
删除表中xiapi行中course列簇的math:delete 'scores','xiapi','course:math'
关闭表: disable ‘scores’
删除表(删除之前必须关闭): drop 'scores'
相关文章推荐
- source、sh、bash、./执行脚本的区别
- adb shell 之 screenrecord
- shell命令行快速编辑命令
- Linux Shell 脚本入门
- linux bash shell中,单引号、 双引号,反引号(``)的区别及各种括号的区别
- Shell命令:echo 命令详解
- Shell命令:echo 命令详解
- Shell 整数比较、字符串比较
- Shell 整数比较、字符串比较
- 安装GIT,集成到Powershell中
- shell学习五十五天----进程记账
- Bash编程-调试
- 动态Shellcode注入工具 – Shellter
- Linux学习4_shell脚本学习
- decker exec -it 容器ID /bin/bash 报错
- Unix/Linux 的 shell
- Unix/Linux 的 shell
- Unix/Linux 的 shell
- Unix/Linux 的 shell
- 【CSAPP】Shell Lab 外壳实验