Go to hbase shell

create table test and list it.

hbase(main):003:0> create ‘test’, ‘cf’

hbase(main):003:0> list ‘test’

 Input data in to it

hbase(main):004:0> put ‘test’, ‘row1’, ‘cf:a’, ‘value1’

hbase(main):005:0> put ‘test’, ‘row2’, ‘cf:b’, ‘value2’

Verify the data

 hbase(main):007:0> scan ‘test’

Advertisements