1.进入Hbase命令行
>hbase shell
>quit
>create 'users','user_id','address','info'
>list
>describe 'users'
>disable 'users'
>drop 'users'
>put 'users','xiaowang','info:age','26'
>put 'users','xiaoming','address:city','beijing'
>put 'users','xiaowang','address:city','shagnhai'
>put 'users','xiaoming','info:age','27'
>get 'users','xiaoming'
>get 'users','xiaoming','info:age'
>get 'users','xiaoming',{COLUMN='info:age',VERSIONS=>3}
11.获取column某个版本的数据(TIMESTAMP为插入式指定当前时间戳)
>get 'users','xiaoming',{COLUMN='info:age',TIMESTAMP=>15134937056}
>scan 'users'
>delete 'users','xiaoming','info:age'
>deleteall 'users','xiaowang'
>count 'users'
>truncate 'users'
我的个人网站:http://www.caicongyang.com ;
我的CSDN博客地址: http://blog.csdn.net/caicongyang ;