hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hbase/Shell" by izaakrubin
Date Thu, 10 Jul 2008 23:08:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by izaakrubin:

The comment on the change is:
Updated to match the new help text in the shell

             For example, to create a table named 't1' with a single family named
             'f1' with an alternate maximum number of cells, type:
-            hbase> create 't1' {NAME => 'f1', VERSIONS => 5}
+            hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
+            To create a table with 'f1', 'f2', and 'f3' using all defaults:
+            hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
+            or in shorthand:
+            hbase> create 't1', 'f1', 'f2', 'f3'
   describe  Describe the named table: e.g. "hbase> describe 't1'"
   delete    Put a delete cell value at specified table/row/column and optionally
             timestamp coordinates.  Deletes must match the deleted cell's
             coordinates exactly.  When scanning, a delete cell suppresses older
-            versions. Takes arguments like 'put' described below
+            versions. Takes arguments like the 'put' command described below
-  deleteall Delete all cells; pass a table name, row and optionally, a column
+  deleteall Delete all cells in a given row; pass a table name, row, and optionally 
-            and timestamp
+            a column and timestamp
-  deletefc  Delete all in the named column family.  Pass table name and family
-  drop      Drop the named table. Table must first be disabled
   disable   Disable the named table: e.g. "hbase> disable 't1'"
+  drop      Drop the named table. Table must first be disabled
   enable    Enable the named table
@@ -73, +79 @@

             hbase> put 't1', 'r1', 'c1', ts1
   scan      Scan a table; pass table name and optionally an array of column
-            names and a dictionary of scanner specification that includes one
-            or more of following: LIMIT, FILTER, STARTROW, STOPROW, or TIMESTAMP.
-            Examples:
+            names OR an array of column names AND a dictionary of scanner 
+            specifications.  If you wish to include scanner specifications, 
+            you must also include an array of columns.  Scanner specifications 
+            may include one or more of the following: LIMIT, STARTROW, STOPROW,
+            or TIMESTAMP.  To scan all members of a column family, leave the 
+            qualifier empty as in 'col_family:'.  Examples:
             hbase> scan '.META.'
             hbase> scan '.META.', ['info:regioninfo']
             hbase> scan 't1', ['c1', 'c2'], {LIMIT => 10, STARTROW => 'xyz'}
   version   Output this HBase version
  === General Notes ===
  Quote all names in the hbase shell such as table and column names.  Don't
  forget commas delimit command parameters.  Type <RETURN> after entering a
  command to run it.  Dictionaries of configuration used in the creation and
  alteration of tables are ruby Hashes. They look like this:
- {{{
    {'key1' => 'value1', 'key2' => 'value2', ...}
- }}}
  They are opened and closed with curley-braces.  Key/values are delimited by
  the '=>' character combination.  Usually keys are predefined constants such as
  NAME, VERSIONS, COMPRESSION, etc.  Constants do not need to be quoted.  Type
  'Object.constants' to see a (messy) list of all constants in the environment.
  This HBase shell is the JRuby IRB with the above HBase-specific commands added.
- For more on the HBase Shell, see http://wiki.apache.org/hadoop/Hbase/Shell
  == Command-line Options ==

View raw message