HBASE test sample

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s