查询数据库
list_namespace
创建数据库
create_namespace 'ns2'
查询库中有哪些表
list
创建表
create 'ns2:table1','cf1','cf2'
#创建名字为f1版本号为5的表
create 'n1:t2',{NAME => 'f1', VERSIONS => 5} 
查看表结构
desc 'ns2:table1'
插值
put 'ns2:table1','myrow1','cf1:id','a'
put 'ns2:table1','myrow1','cf1:name','tom'
put 'ns2:table1','abc','cf1:id','a'
put 'ns2:table1','myrow1','cf1:age',200
查询
get 'ns2:table1','myrow1'
查询表中所有数据
scan 'ns2:table1'
#查询版本号10以内的表数据
scan 'n1:t2' , {RAW => true, VERSIONS => 10}
删除数据
delete 'ns2:table1','myrow1','cf1:id'
删除表
disable 'ns2:table1'
drop 'ns2:table1'