$ hbase shell hbase(main):001:0> enable 'employee' hbase(main):002:0> disable 'employee' hbase(main):003:0> alter 'employee', NAME => 'personal_data', VERSIONS => 5 hbase(main):004:0> enable 'employee' 1. 2. 3. 4. 5. 在上面的示例中,我们首先启用了名为employee的表。然后...
hbase(main):003:0> get 'student','2013001','score:Chinese' COLUMN CELL score:Chinese timestamp=1365848492778, value=100 1 row(s)in0.0320seconds hbase(main):004:0> 8、删除整行 把行键为2013002的这一条记录删掉 hbase(main):001:0>scan 'student' ROW COLUMN+CELL2013001 column=name:, time...
hbase(main):031:0> put 'table','id','column_famaly1:name','tanggao' 0 row(s) in 0.0460 seconds hbase(main):032:0> put 'table','id','column_famaly1:age','20' 0 row(s) in 0.0150 seconds hbase(main):033:0> put 'table','id','column_famaly1:sex','boy' 0 row(s) in...
hbase(main):003:0> put 'test', 'row1', 'cf:a', 'value1' 0 row(s) in 0.2350 seconds hbase(main):004:0> put 'test', 'row2', 'cf:b', 'value2' 0 row(s) in 0.0350 seconds hbase(main):005:0> put 'test', 'row3', 'cf:c', 'value3' 0 row(s) in 0.0040 seconds...
hbase(main):003:0>put'test','row1','cf:a','value1' 0row(s)in0.0850seconds hbase(main):004:0>put'test','row2','cf:b','value2' 0row(s)in0.0110seconds hbase(main):005:0>put'test','row3','cf:c','value3' ...
hbase(main):004:0> get 'qx:t2','20210102_000' COLUMN CELL cf3:age timestamp=1661360151820, value=99 1 row(s) Took 0.1248 seconds #(2)可以同时指定 'ns:t1','rowkey','cf1'【查询某个rowkey中某个列族下的keyvalue】 hbase(main):005:0> get 'qx:t2','20220101_000','cf1' ...
hbase(main):004:0>describe'table_name' 1. 示例 下面是一个完整的示例,演示了如何使用HBaseShell来添加列族。 $ hbase shell hbase(main):001:0>connect'localhost'hbase(main):002:0>get'test_table','row_key'hbase(main):003:0>alter'test_table', NAME=>'new_column_family'hbase(main):004...
hbase(main):002:0> create 'hot_cold_table', {NAME=>'f', COLD_BOUNDARY=>'86400'}参数说明:NAME:需要冷热分离的列族。COLD_BOUNDARY:冷热分离时间点,单位为秒(s)。例如COLD_BOUNDARY为86400,代表86400秒(一天)前写入的数据会被自动归档到冷存储。取消冷热分离。hbase(main):004:0> alter 'hot_cold_...
hbase(main):003:0> put 'student','1001','info:sex','male' hbase(main):004:0> put 'student','1001','info:age','18' hbase(main):005:0> put 'student','1002','info:name','Janna' hbase(main):006:0> put 'student','1002','info:sex','female' ...
hbase(main):014:0> describe 'user' Table user1 is ENABLED COLUMN FAMILIES DESCRIPTION {NAME => 'info1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 'FOREVER', KE EP_...