hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: how to add table
Date Wed, 08 Jul 2009 05:44:19 GMT
See the 'Getting Started' documentation:
http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html#overview_description

It could be better on stuff like creating a table but basically, after
firing up the shell -- see above for how -- type 'help' and study the
command, it has examples for doing stuff like creating tables, etc.  For
example, from the help:

 create    Create table; pass table name, a dictionary of specifications per
           column family, and optionally a dictionary of table
configuration.
           Dictionaries are described below in the GENERAL NOTES section.
           Examples:

           hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
           hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME =>
'f3'}
           hbase> # The above in shorthand would be the following:
           hbase> create 't1', 'f1', 'f2', 'f3'
           hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000,
\
             BLOCKCACHE => true}


For what a column family is, etc., see the bigtable paper or the hbase
architecture document on the wiki.

St.Ack


On Tue, Jul 7, 2009 at 10:35 PM, Muhammad Mudassar <mudassark7@gmail.com>wrote:

> Hi,
>
> I have just started to work with hbase can any body here tell me how to add
> a table to the hbase.
>
>
> thanks
>
> Muhammad Mudassar
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message