开发者学堂课程【分布式数据库 HBase快速入门:HBase Shell 操作(3)】学习笔记,与课程紧密联系,让用户快速学习知识。
课程地址:https://developer.aliyun.com/learning/course/101/detail/1741
HBase Shell 操作
内容简介
一、删除表
二、变更表信息
一、删除表
首先需要先让该表为 disable 状态,
hbase ( main ):019:0> disable “student “
然后才能 drop 这个表
hbase ( main ):020:0> drop “ student “
提示:如果直接 drop 这个表,会报错: ERROR : Table student is enabled Disable it first
二、变更表信息.
将 info 列族中的数据存放3个版本
hbase ( main ):022:0> alter "student” , { NAME =>”info”,VERSIONS=>3}
hbase ( main ):022:0> get"student” ,”1001”{COLUMN =>”info : name “ , “VERSIONS =>3}