hbase(main):010:0> alter 'test_table', {NAME => 'new', VERSIONS => '2', IN_MEMORY => 'true'} Updating all regions with the new schema... 0/1 regions updated. 1/1 regions updated. Done. 0 row(s) in 2.2790 seconds hbase(main):011:0> desc 'test_table' Table test_table ...
hbase(main):010:0* create_namespace 'tablemamager' 3.2:查看namespace: hbase(main):011:0> describe_namespace 'tablemamager' DESCRIPTION {NAME =>'tablemamager'} 3.3:列出所有namespace: hbase(main):012:0> list_namespace NAMESPACE tablemamager default hbase 4、namespace下操作表 4.1:在namesp...
hbase(main):010:0>**put'student','1001','info:age','100'**0row(s)in0.0420seconds 上述命令执行成功后,使用scan扫描数据表中的数据,扫描结果如下: hbase(main):011:0>scan'student'ROWCOLUMN+CELL**1001column=info:age,timestamp=1545732938717,value=100**1001column=info:sex,timestamp=1545728722162...
# 创建表,c1版本为4, 元数据mykey=myvalue hbase(main):009:0>create'test1', {NAME=>'cf1', VERSIONS=>4} 0row(s)in2.2810seconds =>Hbase::Table-t1 # 添加列族c2, c3 hbase(main):010:0>alter't1','c2','c3' Updatingallregionswiththenewschema... 1/1regions updated. Done. Updatinga...
hbase(main):010:0>get 'member','scutshuxue',{COLUMN=>'info:age',TIMESTAMP=>1321586238965} 8. 更新一条记录 将scutshuxue的年龄改成99 hbase(main):004:0>put 'member','scutshuxue','info:age' ,'99' 10. 查询表中有多少行: hbase(main):019:0>count 'member' ...
hbase(main):004:0> user_permission '.*' User Namespace,Table,Family,Qualifier:Permission @admin hbase,hbase:acl,,: [Permission: actions=CREATE,ADMIN] 1 row(s) in 0.8710 seconds 使用admin用户访问Hbase执行操作 hbase(main):004:0> create_namespace 'my_ns_admin' ...
hbase(main):002:0> status 1 active master, 1 backup masters, 3 servers, 0 dead, 1.0000 average load 1. 2. 查看hbase 版本 hbase(main):003:0> version 1.2.6, rUnknown, Mon May 29 02:25:32 CDT 2017 1. 2. 查看当前用户
hbase(main):001:0> create 'student','info' 0 row(s) in 5.7830 seconds => Hbase::Table - student 2.向列簇中添加数据 hbase(main):002:0> put 'student','row1','info:name','jack' 0 row(s) in 0.3890 seconds 3.查看表信息 ...
100003 column=info:name, timestamp=1405390959464, value=show1 3 row(s) in 0.0240 seconds (4)删除指定列族中所有列的时间戳等于指定时间戳的版本数据 为了演示效果,我已经向100003行的info:address列新插入一条数据 hbase(main):010:0> scan 'rd_ns:leetable' ...
hbase(main):007:0> put 'student','1002','info:age','20' 3.扫描查看表数据 hbase(main):008:0> scan 'student' hbase(main):009:0> scan 'student',{STARTROW => '1001', STOPROW => '1001'} hbase(main):010:0> scan 'student',{STARTROW => '1001'} ...