hbase shell的一些简单命令
2015-12-04 21:05
495 查看
hbase shell中间的一些命令
1、创建一个表
create 'data:zoo', {NAME => 'dog', VERSIONS => 3}, {NAME => 'panda', VERSIONS => 1}
2、查看表
list
3、描述一张表
describe ‘guan’
4、插入数据
put 'zoo', 'rk0001', 'dog:gender', 'man'
put 'zoo', 'rk0002', 'panda:size','36' (如果插入中文 直接打字 然后会把变成二进制)
5、全盘扫描
scan ‘zoo’
6、查看之前常见表的信息
scan 'zoo', {RAW => true, VERSION => 10}
1、创建一个表
create 'data:zoo', {NAME => 'dog', VERSIONS => 3}, {NAME => 'panda', VERSIONS => 1}
2、查看表
list
3、描述一张表
describe ‘guan’
4、插入数据
put 'zoo', 'rk0001', 'dog:gender', 'man'
put 'zoo', 'rk0002', 'panda:size','36' (如果插入中文 直接打字 然后会把变成二进制)
5、全盘扫描
scan ‘zoo’
6、查看之前常见表的信息
scan 'zoo', {RAW => true, VERSION => 10}
相关文章推荐
- .bash_profile和.bashrc的区别(如何设置生效)
- Shell命令sshpass非交互SSH密码验证
- android-studio开发NDK错误记录:bash: ../../build/intermediates/classes/debug: is a directory
- PowerShell检测并添加用户权限
- linux shell自带变量
- shell脚本三剑客之sed命令
- shell脚本三剑客之grep命令
- shell脚本三剑客之awk命令
- linux shell中 if else以及大于、小于、等于逻辑表达式 简介
- Calabash(1)在MacOS10.11上安装
- Linux学习篇之---shell下输出带颜色文字
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc和~/.bash_logout
- Shell编程之变量赋值和引用
- 如何实现shell并发
- shell 使用
- -bash: brew: command not found
- 【安卓手机通用】android adb shell 命令大全
- powershell 正则人民币转大写
- Shell正则表达式学习笔记
- shell 删除文件下的* (copy).jpg备份文件