HBase Commands

1. To list tables
> list

2. to create table
>create ‘<Table name>’, {NAME => ‘colfam1’, COMPRESSION => ‘gz’, IN_MEMORY => ‘true’, VERSIONS => ‘1’ }

3. drop table
> disable ‘<Table name>’
> drop ‘<Table name>’

3. count no. of rows in table
> count ‘<Table name>’

4. Query based on the key
>get ‘CustomerProfile’, ‘CP00341425667’

5.Delete single

>delete ‘CustomerProfile’, ‘CP00351625215’, ‘colfam1’,1325231955371

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: