bin/hbase 进入hbase Shell命令模式
create 'student','Sname','Ssex','Sage','Sdept','course' 创建student表,属性'Sname','Ssex','Sage','Sdept','course'
put 'student','95001','Sname','LiYing' 添加数据(表名,行键,字段,字段值)
delete 'student','95001','Ssex' 删除数据(指定表的指定行的指定字段)
deleteall 'student','95001' 删除该行所有数据
get 'student','95001' 查看该行数据
scan 'student' 查看该表所有数据
disable 'student' 禁用表
drop 'student' 删除表(需要先禁用表)
enable 'student' 启用表
is_enabled 'student' 检查表是否被启用
exists 'student' 检查表是否存在
desc 'student' 查看表的基本信息
list 查看所有表
snapshot 'student','temp' 创建sutdent的快照temp
clone_snapshot 'temp','stu' 复制temp到stu
delect_snapshot 'temp' 删除快照
alter 'student','stuinfo' 添加列簇
alter 'student',{NAME =>'stuinfo',METHOD => 'delete'} 删除列簇